# Tag policies are a partial detective layer

A required-key tag policy is a partial detective layer. It won't cover 14 services and it can't
cover every snapshot. Know that before you plan a mandatory tag rollout.

We wanted the AWS-native detective layer for a mandatory partner tag: a tag policy with a Required
key, the org-wide compliance report, and a CloudFormation hook that warns on stacks without the key.
Several steps failed on the day.

The tag policy's map name must be exactly the tag key, otherwise the create call only says it doesn't
meet the requirements. A key starting with `aws` is accepted. `report_required_tag_for` takes a
service with ALL_SUPPORTED or explicit types, and you can test candidate types by creating and
deleting a policy, which is free. 14 services aren't supported by tag policies at all: API Gateway,
AppSync, Bedrock AgentCore, Cloud Directory, CloudHSM, CodeStar, Data Pipeline, Directory Service,
DRS, MediaLive, MSK, OpenSearch, Security Hub, Storage Gateway. EBS and RDS snapshots and AMIs can't
take a required key.

The compliance report runs in the management account in us-east-1 only, and the caller needs
GetObject and PutObject on the report bucket, which must also sit in us-east-1, under `aws:CalledViaLast`. It lists only
resources with at least one tag, and data refreshes about every 48 hours.
`list_aws_service_access_for_organization` returns 20 per page; a first-page read once said trusted
access was off when it was on.

The CloudFormation hook needs the PublicTypeArn and an execution role; the documented PublisherId of
AWS is rejected. TargetStacks and HookInvocationStatus are exclusive, and the hook can't be deployed
in ap-southeast-7.

Tag policies look like the answer, and AWS proposes them first. They're one source. You still need a second source and owner-side fixes.
