Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1 KB

README.rst

File metadata and controls

58 lines (46 loc) · 1 KB

aws_instance

Summary

This example introduces aws_instance resource.

.. toctree::
   :caption: additional examples

   run_instance_with_cdrom/README
   run_instance_with_ebs_override/README
   run_instance_with_data_source_ami/README
   run_instance_with_existing_network_interface/README
   run_instance_default_subnet/README
   run_instance_in_switch/README
   run_instances_remove_cdrom/README

Differences

Unsupported attributes

  • tenancy
  • host_id
  • cpu_core_count
  • cpu_threat_per_code
  • ebs_optimized
  • get_password_data
  • monitoring
  • iam_instance_profile
  • ipv6_address_count
  • ipv6_addresses
  • volume_tags
  • credit_specification

Special notes

This resource supports tags attribute:

Example tag

resource "aws_instance" "test" {
    ...

    tags = {
      Name = "value"
    }
    ...
 }

Example

.. literalinclude:: main.tf