Difference between revisions of "Terraform: resource"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== [[AWS provider]] ==
 
== [[AWS provider]] ==
  resource "[[aws_instance]]" "app_server" {
+
  resource "[[aws_instance]]" "my_app_server" {
 
   ami          = "ami-08d70e59c07c61a3a"
 
   ami          = "ami-08d70e59c07c61a3a"
 
   instance_type = "t2.[[micro]]"
 
   instance_type = "t2.[[micro]]"

Revision as of 17:43, 13 September 2021


AWS provider

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

  tags = {
    Name = "ExampleAppServerInstance"
  }

Resources

Related terms

See also

Advertising: