Difference between revisions of "Terraform: Tags"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
  resource "aws_vpc" "example" {
 
  resource "aws_vpc" "example" {
   # ... other configuration ...
+
   # .../...
 
 
   tags = {
 
   tags = {
 
     Name = "MyVPC"
 
     Name = "MyVPC"
 +
  }
 +
}
 +
 +
resource "aws_vpc" "example" {
 +
  # .../...
 +
  tags = {
 +
    Terraform = "yes"
 +
    env = "dev"
 
   }
 
   }
 
  }
 
  }

Revision as of 14:55, 29 June 2022

Advertising: