Difference between revisions of "Terraform resource: aws instance"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
 
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 ==  
 
== Arguments ==  

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


See also

Advertising: