Difference between revisions of "Terraform resource: aws instance"

From wikieduonline
Jump to navigation Jump to search
Line 29: Line 29:
 
* [[AWS instance example: main.tf]]: <code>[[aws instance]]</code>
 
* [[AWS instance example: main.tf]]: <code>[[aws instance]]</code>
  
== Related commands ==
+
== Related terms ==
 
* <code>[[aws ec2 describe-key-pairs]]</code>
 
* <code>[[aws ec2 describe-key-pairs]]</code>
 
* [[Terraform examples]]
 
* [[Terraform examples]]
 
+
* <code>[[source]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 14:10, 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: