Interview Prep/AWS/Observability, Deployments and Governance

How do you enforce tagging across an organization?

AdvancedProductionObservability, Deployments and Governance
Answer

Layers:

  1. Tag policies in Organizations standardize keys and allowed values (and can enforce compliance for listed resource types on tagging operations).
  2. SCPs deny creation without tags for key resources using aws:RequestTag and aws:TagKeys:
{"Effect": "Deny", "Action": ["ec2:RunInstances", "ec2:CreateVolume"],
 "Resource": ["arn:aws:ec2:*:*:instance/*", "arn:aws:ec2:*:*:volume/*"],
 "Condition": {"Null": {"aws:RequestTag/cost-center": "true"}}}
  1. Config rule required-tags for detection and reporting.
  2. IaC default tags so engineers rarely think about it.

Activate cost allocation tags in Billing, or tags never appear in Cost Explorer.

aws All AWS questions

More on Observability, Deployments and Governance