Difference between revisions of "Terraform resource: aws instance"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
* <code>[[associate_public_ip_address]]</code>
 
* <code>[[associate_public_ip_address]]</code>
 
* <code>[[tenancy]]</code>
 
* <code>[[tenancy]]</code>
 +
* <code>[[subnet_id]]</code>
  
 
== Examples ==
 
== Examples ==

Revision as of 18:45, 6 September 2021

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance

Example

resource "aws_instance" "MYexample" {
 ami           = "ami-08d70e59c07c61a3a"
 instance_type = "t2.micro" 

 tags = {
   Name = "your_name_here"
 }
}

Arguments

Examples

Related terms

See also

Advertising: