How do you enforce tagging across an organization?
AdvancedProductionObservability, Deployments and Governance
Answer
Layers:
- Tag policies in Organizations standardize keys and allowed values (and can enforce compliance for listed resource types on tagging operations).
- SCPs deny creation without tags for key resources using
aws:RequestTagandaws:TagKeys:
{"Effect": "Deny", "Action": ["ec2:RunInstances", "ec2:CreateVolume"],
"Resource": ["arn:aws:ec2:*:*:instance/*", "arn:aws:ec2:*:*:volume/*"],
"Condition": {"Null": {"aws:RequestTag/cost-center": "true"}}}
- Config rule
required-tagsfor detection and reporting. - IaC default tags so engineers rarely think about it.
Activate cost allocation tags in Billing, or tags never appear in Cost Explorer.
More on Observability, Deployments and Governance
What should a production CloudWatch alarm strategy look like?IntermediateHow do you alert on an error-rate percentage instead of a raw count?IntermediateHow do you implement distributed tracing on AWS today?IntermediateHow do you define SLOs with AWS-native tools?AdvancedHow do you monitor from the user's perspective?BeginnerHow do you centralize observability across many accounts?Intermediate