Tags
Revision as of 09:38, 7 February 2024 by Welcome (talk | contribs) (→Terraform, Terraform provider-level tagging)
AWS
"Tags": [ { "Key": "Name", "Value": "YOUR_NAME" }
aws ec2 describe-route-tables | jq -r '.RouteTables[] | select(.Tags[].Value=="YOUR_TAG/PublicRouteTable") | .RouteTableId'
Related: aws-find, Terraform resource: aws_ec2_tag
Terraform, Terraform provider-level tagging
.tfvars tags = { env = "sandbox", created-by = "your_name" triggered-by = "terraform" project = "your_project" ou = "your_OU" }
AWS
# Terraform 0.12 (2019) and later syntax provider "aws" { # ... other configuration ... default_tags { tags = { Environment = "Production" Owner = "Ops" } } }
tags = { Environment = "dev" Terraform = "true" }
Related terms
Advertising: