Difference between revisions of "Terraform resource: aws instance"

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

Revision as of 09:18, 8 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: