Skip to content

Instantly share code, notes, and snippets.

@jakepage91
Last active October 18, 2022 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakepage91/0f17b7b910db6abe27cd0aa395300eb7 to your computer and use it in GitHub Desktop.
Save jakepage91/0f17b7b910db6abe27cd0aa395300eb7 to your computer and use it in GitHub Desktop.
Snipped of Terraform aws provider to add default and resource level tags
provider "aws" {
default_tags {
tags = {
Environment = "Sandbox"
Project = "DevOps"
}
}
}
resource "aws_vpc" "example" {
# ... other configuration ...
tags = {
CostCenter = "Team_2"
Name = "Test-VPC"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment