Tag Governance Automator
Mindset
One-line takeaway: tag governance is a three-layer stack — define
(Organizations TagPolicy sets the rules) → enforce (EventBridge +
Lambda auto-tags on creation; Config required-tags detects violations) →
remediate (SSM Automation or Lambda adds missing tags; Config
re-evaluates and flips COMPLIANT). A gap in ANY layer produces a silent
failure: the policy is published but never enforced, resources are tagged
inconsistently, cost allocation reports are wrong, and ABAC policies
silently over-permit or under-permit.
- Organizations TagPolicy without
enforced_for is advisory only:
the policy says Environment must be prod or dev, but if no resource
type is listed under enforced_for, AWS does not block non-compliant
tag operations. The policy is documentation, not enforcement.
- Auto-tagging without a tag policy produces drift: the Lambda
stamps tags on creation, but nothing stops a human from changing them
afterward. Always pair auto-tagging with a tag policy that prevents
unauthorized modifications.
- Cost allocation tags are NOT active by default. A perfectly tagged
fleet produces zero cost-dimension data in CUR / Cost Explorer until
an administrator activates the tag keys in Billing. This is the #1
"we tagged everything and Cost Explorer is still empty" issue.
Quick navigation
| You want to... |
Go to |
| Define required vs optional tag keys |
Step 1 (tag strategy table) |
| Author Organizations TagPolicy JSON |
Step 2 + Appendix A |
| Build EventBridge + Lambda auto-tagging |
Step 3 + reference auto-tagging-eventbridge-lambda.md |
| Bulk tag/untag across regions via Tagging API |
Step 4 |
Wire Config required-tags rule |
Step 5 |
| Route tag findings to Security Hub |
Step 6 |
| Remediate missing tags automatically (Config → SSM → Config) |
Step 7 |
| Activate cost allocation tags |
Step 8 |
| Design ABAC IAM policies (aws:ResourceTag / aws:PrincipalTag) |
Step 9 |
| Verify and audit a deployed governance baseline |
Step 10 |
| Avoid common tag-policy and ABAC pitfalls |
Anti-Patterns |
| Recent features (TagPolicy ABAC, CE tag-status API) |
Recent AWS features |
Critical rules at a glance (do NOT bury these)
enforced_for is what makes a tag policy enforce. Without it,
the policy defines allowed values but AWS does not block non-compliant
CreateTags / PutBucketTagging / TagResource calls. A policy
with allowed_values but no enforced_for is a recommendation, not
a guardrail. Always list the resource types explicitly.
- Organizations TagPolicy
allowed_values matching is case-insensitive
by default. Set tag_key.case_sensitive: true if your downstream
systems (CUR, ABAC conditions) depend on exact casing. A mismatch
between the policy's case sensitivity and your IAM StringEquals
conditions produces silent ABAC over-grants.
- Tag policies cascade: org root → OU → account → resource. A
child policy does NOT override the parent — it is additive (union of
constraints). You cannot relax a parent's
allowed_values at the
child level. If the root says Environment is prod|dev, an OU
cannot add staging without editing the root policy.
- Cost allocation tags require explicit activation in Billing.
Tagging a resource does NOT make the tag appear in Cost Explorer or
the Cost and Usage Report (CUR). An administrator must activate each
tag key via the Billing console or
ce update-cost-allocation-tags-status.
Activation takes up to 24 hours to propagate.
- ABAC condition keys are case-sensitive at the IAM evaluation layer.
aws:ResourceTag/Environment with StringEquals: "prod" does NOT
match a resource tagged Prod. If your tag policy allows
case-insensitive values but your IAM condition uses StringEquals,
you have a silent gap. Use StringEqualsIgnoreCase for ABAC
conditions OR enforce case sensitivity in the tag policy.
Pre-flight: data requirements
Designing a tag governance baseline requires these inputs:
| Input |
Source |
Why |
| Organization ID + root ID |
aws organizations describe-organization |
Tag policy scope |
| Existing tag policies |
aws organizations list-policies --filter TAG_POLICY |
Don't overwrite blindly |
| OU structure |
aws organizations list-organizational-units-for-parent |
Where to attach policies |
| Account → environment mapping |
Internal CMDB or account tags |
Drives Environment allowed_values |
| Config recorder status |
aws configservice describe-configuration-recorders |
Required-tags rule needs recorder |
| Existing Config rules |
aws configservice describe-config-rules |
Avoid duplicate required-tags rules |
| Security Hub enablement |
aws securityhub describe-hub |
Finding aggregation target |
| Sample resource inventory |
aws resourcegroupstaggingapi get-resources |
Baseline current tag coverage |
| IAM principal tags (for ABAC) |
aws iam list-user-tags / list-role-tags |
ABAC source attributes |
If the input is malformed (missing org ID, ambiguous scope), emit:
GOVERNANCE: <reference>
VERDICT: ERROR
REASON: Cannot design tag governance — Organizations root ID and target scope (resource types + accounts) are required.
GAP: Re-supply describe-organization output and the list of resource types to enforce tagging on.
Process — Workflow design (apply in order)
Step 0: Expert knowledge — non-obvious TagPolicy + tagging behaviors
Moved to references/advanced-patterns.md.
Ten expert behaviors: enforcement only on enforced_for types, service:resource-type notation typos silently disable enforcement, policies block but never retro-fix, tag-resources is not atomic (check FailedResourcesMap), get-resources is region-scoped, required-tags max 5 keys, cost-tag activation is per-account, aws:PrincipalTag resolves at session creation, aws:RequestTag is create/tag-only, per-type tagging APIs need branching runbooks, system tags are not enforced.
Step 1: Define the tag strategy framework
Every governance engagement starts with a canonical tag key set.
Default to this baseline and adjust per organizational requirements:
| Tag key |
Category |
Required? |
Allowed values (example) |
Purpose |
Environment |
Required |
Yes |
dev, staging, prod |
ABAC, cost split, blast-radius scoping |
Owner |
Required |
Yes |
email or team alias (free-form) |
Accountability, alert routing |
Project |
Required |
Yes |
project code (free-form) |
Cost allocation |
CostCenter |
Required |
Yes |
cc-1001, cc-1002, ... |
Finance reporting |
Application |
Required |
Yes |
app name (free-form) |
Grouping, dependency mapping |
Backup:Required |
Optional |
No |
true, false |
Backup policy routing |
ComplianceTier |
Optional |
No |
tier-1, tier-2, tier-3 |
Audit cadence, SOC scope |
DataClassification |
Optional |
No |
public, internal, confidential |
Macie, KMS routing |
Decision rules:
- Never exceed 10 required tags — operational friction kills adoption.
- Free-form tags (
Owner, Project) are acceptable for the FIRST pass;
tighten to allowed_values once the set stabilizes.
- Map each tag key to a downstream consumer (Cost Explorer, ABAC, Config,
Macie). A tag no consumer reads is dead weight.
Step 2: Author the Organizations TagPolicy JSON
Moved to references/organizations-tag-policies.md.
Full recipe: enable-policy-type, the canonical baseline TagPolicy JSON (Environment/CostCenter/Owner/Project with case_sensitive + allowed_values + enforced_for), create-policy, attach to root/OU, negative-test enforcement, and the common-errors table (TagPolicyViolationException, silent no-enforcement, additive child limits, PolicyTypeNotEnabledException).
Step 3: Build EventBridge + Lambda auto-tagging
Moved to references/auto-tagging-eventbridge-lambda.md.
Full recipe: CloudTrail → EventBridge rule (EC2 RunInstances; S3 CreateBucket + Lambda CreateFunction) → the multi-service Python handler with account→Environment mapping, plus the Lambda execution-role permissions and the EventBridge-vs-SSM trade-off table.
Step 4: Resource Groups Tagging API bulk operations
Moved to references/advanced-patterns.md.
Bulk tag/untag, multi-region get-resources iteration, get-tag-keys/values, FailedResourcesMap discipline, and the Tag Editor console alternative (manual-only, never the primary mechanism).
Step 5: Wire Config required-tags managed rule
Moved to references/advanced-patterns.md.
required-tags-core put-config-rule CLI (5 keys, 4 resource types), the required-tags-ext second rule for 6+ keys, and describe/get-compliance verification.
Step 6: Security Hub integration
Moved to references/advanced-patterns.md.
FSBP tag controls ([EC2.26]/[S3.10]/[Lambda.3]), enable-security-hub, describe-standards-controls tag query, and the batch-import-findings custom-finding payload.
Step 7: Automated remediation (Config → SSM → Config re-evaluate)
Moved to references/worked-examples.md.
Pattern A: the Custom-AddRequiredTagsEC2 SSM Automation YAML + put-remediation-configurations wiring (Automatic: false); Pattern B: EventBridge on Config NON_COMPLIANT → Lambda; placeholder remediation requires a human-correction queue.
Step 8: Activate cost allocation tags
Cost allocation tags do NOT appear in Cost Explorer or CUR until
activated. Two activation paths:
Path A — API (preferred for automation):
aws ce update-cost-allocation-tags-status \
--cost-allocation-tags-status \
'[{"TagKey":"Environment","Status":"Active"},
{"TagKey":"Owner","Status":"Active"},
{"TagKey":"Project","Status":"Active"},
{"TagKey":"CostCenter","Status":"Active"}]'
Verify:
aws ce list-cost-allocation-tags \
--status Active
Path B — Billing console (fallback):
Billing console → Cost Allocation Tags → user-defined cost allocation tags
→ Activate each tag key.
User-defined vs AWS-generated tags:
| Tag source |
Examples |
Activation |
| User-defined |
Owner, Environment, Project |
Must be activated manually |
| AWS-generated |
aws:createdBy, aws:cloudformation:stack-name |
aws:createdBy is auto-active; others must be activated |
Org payer vs member accounts: in a consolidated billing family,
activate tags on the payer account. The payer's cost allocation tag
settings apply to the consolidated CUR. Member-account-specific tags
require per-member activation for member-account-local reporting.
If the account does NOT support ce update-cost-allocation-tags-status
(legacy accounts or restricted IAM), the activation is a MANUAL step.
Flag MANUAL_STEP_REQUIRED with the Billing-console path.
Step 9: ABAC IAM policy design
Attribute-based access control uses resource and principal tags in IAM
condition keys to make access decisions. ABAC scales better than RBAC
for large orgs because new resources and principals inherit access from
their tags — no policy edit needed.
ABAC condition keys:
| Condition key |
Source |
When evaluated |
aws:ResourceTag/<key> |
Resource tags |
On every API call against the resource |
aws:PrincipalTag/<key> |
IAM user/role session tags |
At session creation (fixed for session lifetime) |
aws:RequestTag/<key> |
Tags in the API request |
On create / tag operations only |
aws:TagKeys |
List of tag keys in request |
On tag operations |
ABAC policy pattern (team-scoped S3 access):
Policy JSON moved to references/worked-examples.md.
Two statements: team-tag-gated object actions on team-data-* plus CreateBucket with aws:RequestTag/Team and ForAllValues aws:TagKeys allow-list.
ABAC prerequisites checklist:
- IAM principals (users / roles) are tagged with the attribute (e.g.,
Team).
- Resources are tagged with the same attribute.
- The IAM policy uses
aws:ResourceTag matching aws:PrincipalTag.
- The tag policy (Step 2) enforces that the attribute tag key exists on
new resources (otherwise ABAC silently breaks for new resources).
- Session tags are passed on
AssumeRole via --tags or STS session
tagging.
Common ABAC pitfall: StringEquals is case-sensitive. If your tag
policy allows case_sensitive: false for Environment, but your IAM
condition is StringEquals: {"aws:ResourceTag/Environment": "prod"},
a resource tagged Prod fails the check. Either enforce
case_sensitive: true in the tag policy OR use
StringEqualsIgnoreCase in the IAM condition.
Step 10: Audit and verify a deployed governance baseline
Moved to references/diagnostic-commands.md.
Six verification groups: tag policy attached/enforced, Config rule evaluating, auto-tagger Lambda firing, Security Hub findings, active cost allocation tags, resource tag coverage — plus the "passes 1-3 but zero cost tags = incomplete" rule.
STRICT output contract
Every output MUST follow this exact structure. Deviations are bugs in
the skill.
GOVERNANCE: <reference>
SCOPE: <accounts / OUs / regions covered>
STRATEGY:
- Required tags: <comma-separated keys>
- Optional tags: <comma-separated keys or "none">
- Enforcement layer: <Organizations TagPolicy | Config rule | both>
POLICY:
- Type: <Organizations TagPolicy | Config required-tags | EventBridge auto-tagger | ABAC IAM | conformance pack>
- Attached to: <root | OU | account | resource>
- Template: <inline JSON/YAML or "see Step N">
AUTOMATION:
- Auto-tagging: <EventBridge + Lambda | none>
- Remediation: <SSM Automation | Lambda | none>
- Trigger: <automatic | manual>
COMPLIANCE:
- Detection: <Config rule name(s)>
- Reporting: <Security Hub | Config dashboard | both>
- Cost allocation: <active | inactive | pending>
VERDICT: AUTOMATED | MANUAL_STEP_REQUIRED
GAP: <if MANUAL_STEP_REQUIRED, the specific missing piece>
TEMPLATE: <full CLI snippet or policy JSON>
Worked example — AUTOMATED, full tag governance baseline
GOVERNANCE: org-tag-baseline
SCOPE: org root r-xxxx, all member accounts, us-east-1 + us-west-2
STRATEGY:
- Required tags: Environment, Owner, Project, CostCenter, Application
- Optional tags: Backup:Required, ComplianceTier, DataClassification
- Enforcement layer: Organizations TagPolicy + Config required-tags rule
POLICY:
- Type: Organizations TagPolicy + Config required-tags-core
- Attached to: root (policy), Config recorder (rule)
- Template: see Step 2 (TagPolicy JSON) + Step 5 (Config rule)
AUTOMATION:
- Auto-tagging: EventBridge + Lambda on RunInstances, CreateBucket, CreateFunction
- Remediation: SSM Automation Custom-AddRequiredTagsEC2 (manual trigger, placeholder values)
- Trigger: manual (placeholder remediation requires human correction)
COMPLIANCE:
- Detection: required-tags-core, required-tags-ext
- Reporting: Security Hub FSBP controls + Config compliance dashboard
- Cost allocation: active (Environment, Owner, Project, CostCenter via ce API)
VERDICT: AUTOMATED
GAP: None
TEMPLATE:
aws organizations create-policy --type TAG_POLICY --name baseline-tag-policy --content file://tag-policy.json
aws configservice put-config-rule --config-rule '{"ConfigRuleName":"required-tags-core","Source":{"Owner":"AWS","SourceIdentifier":"REQUIRED_TAGS"},"Scope":{"ComplianceResourceTypes":["AWS::EC2::Instance","AWS::S3::Bucket","AWS::Lambda::Function","AWS::RDS::DBInstance"]},"InputParameters":"{\"tag1Key\":\"Environment\",\"tag2Key\":\"Owner\",\"tag3Key\":\"Project\",\"tag4Key\":\"CostCenter\",\"tag5Key\":\"Application\"}"}'
aws ce update-cost-allocation-tags-status --cost-allocation-tags-status '[{"TagKey":"Environment","Status":"Active"},{"TagKey":"Owner","Status":"Active"},{"TagKey":"Project","Status":"Active"},{"TagKey":"CostCenter","Status":"Active"}]'
Worked example — MANUAL_STEP_REQUIRED, cost allocation activation on legacy account
Moved to references/worked-examples.md.
Full MANUAL_STEP_REQUIRED report: legacy payer blocks ce update-cost-allocation-tags-status; Billing-console path + 24h propagation.
Anti-Patterns — NEVER do these things
NEVER publish a TagPolicy without enforced_for. The policy with
allowed_values but no enforced_for is advisory — AWS does not
block non-compliant operations. Operators assume enforcement and
drift accumulates silently.
NEVER assume tag policy child policies can override the parent. They
cannot. Child OU and account policies are additive (union). To relax
a parent's allowed_values, edit the parent. A common mistake is
attaching a child policy with allowed_values: ["staging"] and
assuming it merges with the parent's ["dev", "prod"] — it does
not. The child can only further restrict.
NEVER use StringEquals for ABAC conditions when the tag policy has
case_sensitive: false. The case-insensitive tag policy allows
Prod and prod; the IAM condition matches only prod. This
produces silent under-grants (legitimate access denied) OR
over-grants (a Deny with StringNotEquals silently passes). Use
StringEqualsIgnoreCase for ABAC conditions OR enforce
case_sensitive: true in the tag policy.
NEVER assume cost allocation tags are active by default. They are
NOT. A fully tagged fleet with zero activated tag keys produces
zero cost-dimension data in Cost Explorer and CUR. Always verify
with ce list-cost-allocation-tags --status Active.
NEVER deploy a single Config required-tags rule for more than 5
tag keys. The managed rule silently ignores keys beyond the 5th
(tag6Key...tag7Key are not accepted parameters). Deploy multiple
required-tags rules (e.g., required-tags-core, required-tags-ext).
NEVER assume resourcegroupstaggingapi get-resources returns global
results. It is region-scoped. Querying only us-east-1 misses
resources in other regions. Iterate over all enabled regions.
NEVER ignore FailedResourcesMap in a tag-resources response. A
non-empty map means some resources were not tagged. The API call
"succeeded" but the tagging is partial. Log, retry, and alert on
persistent failures.
NEVER wire auto-tagging without a tag policy. The Lambda stamps
tags on creation, but nothing stops a human from modifying them
afterward. Pair auto-tagging with a TagPolicy that enforces
allowed_values on the same keys.
NEVER set Automatic: true on placeholder-tag remediation (e.g.,
Environment: unknown) without a downstream human-correction queue.
The placeholder satisfies the Config rule but pollutes ABAC and
cost reporting. Always flag placeholder remediation as a secondary
manual step.
NEVER use aws:RequestTag in a policy governing read operations
(s3:GetObject, ec2:DescribeInstances). aws:RequestTag is only
present on create / tag API calls. A Deny with aws:RequestTag
on a read operation silently never matches.
NEVER assume IAM principal tags propagate to existing sessions.
aws:PrincipalTag is resolved at session creation. Changing a
user's Team tag does not affect active sessions until they
re-authenticate. Coordinate tag changes with session refresh.
NEVER forget that Organizations TagPolicy does NOT enforce on
AWS-generated tags (aws:cloudformation:stack-name,
aws:createdBy). These are system tags. User-defined policies apply
only to user-supplied keys. If your ABAC depends on aws:createdBy,
there is no enforcement lever — it is always present but read-only.
NEVER deploy ABAC without tagging the IAM principals first. An ABAC
policy using aws:PrincipalTag/Team on an untagged role silently
denies all access (empty string does not match). Verify principal
tags with iam list-user-tags / list-role-tags before deploying
the policy.
NEVER bulk-tag resources across accounts without assuming a role in
each target account. The Tagging API operates within the caller's
account. A cross-account bulk-tag script requires sts:AssumeRole
into each member account.
Pre-flight safety checks (run before applying any tag governance CLI)
Moved to references/diagnostic-commands.md.
Gates: CONFIRM prompt, back up the tag policy (no version history), sandbox-OU test before root, payer API support check, inventory principal tags before ABAC.
Appendix A — Canonical tag key reference
Moved to references/advanced-patterns.md.
12-row canonical key table: required (Environment/Owner/Project/CostCenter/Application/Team), optional (Backup:Required/ComplianceTier/DataClassification), auto (CreatedAt/CreatorARN/CreatedVia) with consumers.
Appendix B — Decision tree (which enforcement layer)
Is the requirement to PREVENT non-compliant tags at creation?
├─ Yes → Organizations TagPolicy with enforced_for (Step 2)
│ (blocks the API call; does not fix existing resources)
│
└─ No → Is the requirement to DETECT and REPORT missing tags?
├─ Yes → Config required-tags rule (Step 5) + Security Hub (Step 6)
│
└─ No → Is the requirement to AUTO-STAMP tags on creation?
├─ Yes → EventBridge + Lambda auto-tagger (Step 3)
│
└─ No → Is the requirement to REMEDIATE existing untagged resources?
├─ Yes → Config → SSM Automation / Lambda remediation (Step 7)
│
└─ No → Is the requirement to USE tags for access decisions?
├─ Yes → ABAC IAM policy (Step 9)
│
└─ No → Is the requirement for COST REPORTING?
├─ Yes → Cost allocation tag activation (Step 8)
│
└─ Default: tag strategy framework (Step 1)
Recent AWS features (2024-2026)
Moved to references/advanced-patterns.md.
TagPolicy ABAC integration, ce update-cost-allocation-tags-status GA, Tagging API pagination lifts, multi required-tags rules, custom Security Hub findings, EventBridge cross-account routing, STS session tagging.
Expert heuristic: tag governance blast radius
Moved to references/advanced-patterns.md.
Non-negotiable: sandbox-OU test before root; includes the why (fleet-wide CreateTags outage), five scoping techniques, the 3-phase DETECT→sandbox-ENFORCE→root-ENFORCE rollout, cost-tag and ABAC blast radius, and BLAST_RADIUS/VALIDATION_PHASE output fields.
References (load on demand)
- advanced-patterns — Step 0 expert knowledge, Step 4 Tagging API bulk ops, Step 5 Config rule, Step 6 Security Hub, Appendix A key reference, Recent AWS features, and the blast-radius expert heuristic moved from SKILL.md
- worked-examples — Step 7 remediation recipes (SSM YAML + wiring + Pattern B), the ABAC policy JSON, and the MANUAL_STEP_REQUIRED worked example moved from SKILL.md
- diagnostic-commands — Step 10 baseline audit commands and the pre-flight safety checks moved from SKILL.md
- organizations-tag-policies — now also holds the full Step 2 TagPolicy authoring recipe moved from SKILL.md
- auto-tagging-eventbridge-lambda — now also holds the full Step 3 EventBridge + Lambda auto-tagging recipe moved from SKILL.md
Domain
AWS CloudOps / Governance Automation — Tag governance, ABAC, cost
allocation.
AWS documentation
1---2name: tag-governance-automator3description: 'Designs and implements AWS tag governance automation across Organizations TagPolicy JSON (allowed_values, case_sensitive, enforced_for cascade), EventBridge + Lambda auto-tagging on EC2/S3/Lambda creation (derive Owner from IAM identity, Environment from account map), Resource Groups Tagging API bulk operations (tag-resources, untag-resources, get-resources multi-region), Config required-tags managed rule + Security Hub finding aggregation, cost-allocation-tag activation via Billing API (user-defined vs AWS-generated), and ABAC IAM policy design with aws:ResourceTag and aws:PrincipalTag condition keys. Covers automated remediation: Config detects missing tag, SSM Automation adds tag, Config re-evaluates. Emits AUTOMATED with tag policy template or MANUAL_STEP_REQUIRED with the specific gap. Use when building tag governance, auto-tagging pipelines, ABAC, or tag-compliance automation.'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline policy design. Live deployment uses aws organizations enable-policy-type, create-policy, update-policy, aws resourcegroupstaggingapi tag-resources, untag-resources, get-resources, aws configservice put-config-rule, describe-config-rules, aws ce update-cost-allocation-tags-status, aws ssm create-document, start-automation-execution, and aws lambda create-function with an...6metadata:7 source: https://skillmd.com/skills/jhkchan/tag-governance-automator8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '4'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Governance15 task_type: automate16 skill_class: capability17 lifecycle_status: active18 verdict_shape: AUTOMATED | MANUAL_STEP_REQUIRED19 when_to_use: Designing Organizations tag policies (allowed_values, case sensitivity, enforced_for), building EventBridge + Lambda auto-tagging pipelines, running Resource Groups Tagging API bulk operations across regions, wiring Config required-tags rules with Security Hub findings, activating cost allocation tags, designing ABAC IAM policies with aws:ResourceTag / aws:PrincipalTag conditions, or remediating untagged resources via Config + SSM Automation.20 activation_triggers: design Organizations TagPolicy, allowed_values enforced_for, auto-tag on creation EventBridge Lambda, Resource Groups Tagging API bulk, tag-resources untag-resources, required-tags Config rule, cost allocation tag activation, ABAC IAM policy ResourceTag, tag compliance remediation, Security Hub tag finding, tag governance baseline21 invocation_schema: 'Input: either (a) a tag governance requirement ("enforce Environment and CostCenter tags on all EC2 and S3 resources", "auto-tag Owner on EC2 creation", "design ABAC policy for team-scoped access"), OR (b) an existing tag policy / Config rule / EventBridge rule to audit and harden. Output: deterministic GOVERNANCE block per requirement — STRATEGY/POLICY/AUTOMATION/COMPLIANCE/VERDICT — where VERDICT is AUTOMATED (tag policy template ready) or MANUAL_STEP_REQUIRED (specific gap cited, e.g., Billing console activation that cannot be API-driven).'22 version: 0.1.023 author: Jacky Chan — AWS Community Builder24 keywords: AWS Organizations, Tag Policy, TagPolicy, allowed_values, enforced_for, Resource Groups Tagging API, tag-resources, untag-resources, AWS Config, required-tags, Security Hub, EventBridge, Lambda auto-tagging, cost allocation tags, ABAC, aws:ResourceTag, aws:PrincipalTag, aws:RequestTag, SSM Automation, tag compliance, tag governance25 tags: aws-organizations, tag-policy, resource-groups-tagging-api, aws-config, security-hub, abac, eventbridge, lambda, automate26---2728# Tag Governance Automator2930## Mindset3132**One-line takeaway:** tag governance is a three-layer stack — **define**33(Organizations TagPolicy sets the rules) → **enforce** (EventBridge +34Lambda auto-tags on creation; Config required-tags detects violations) →35**remediate** (SSM Automation or Lambda adds missing tags; Config36re-evaluates and flips COMPLIANT). A gap in ANY layer produces a silent37failure: the policy is published but never enforced, resources are tagged38inconsistently, cost allocation reports are wrong, and ABAC policies39silently over-permit or under-permit.4041- **Organizations TagPolicy** without `enforced_for` is advisory only:42 the policy says Environment must be `prod` or `dev`, but if no resource43 type is listed under `enforced_for`, AWS does not block non-compliant44 tag operations. The policy is documentation, not enforcement.45- **Auto-tagging** without a **tag policy** produces drift: the Lambda46 stamps tags on creation, but nothing stops a human from changing them47 afterward. Always pair auto-tagging with a tag policy that prevents48 unauthorized modifications.49- **Cost allocation tags are NOT active by default.** A perfectly tagged50 fleet produces zero cost-dimension data in CUR / Cost Explorer until51 an administrator activates the tag keys in Billing. This is the #152 "we tagged everything and Cost Explorer is still empty" issue.5354## Quick navigation5556| You want to... | Go to |57|---|---|58| Define required vs optional tag keys | Step 1 (tag strategy table) |59| Author Organizations TagPolicy JSON | Step 2 + Appendix A |60| Build EventBridge + Lambda auto-tagging | Step 3 + reference auto-tagging-eventbridge-lambda.md |61| Bulk tag/untag across regions via Tagging API | Step 4 |62| Wire Config `required-tags` rule | Step 5 |63| Route tag findings to Security Hub | Step 6 |64| Remediate missing tags automatically (Config → SSM → Config) | Step 7 |65| Activate cost allocation tags | Step 8 |66| Design ABAC IAM policies (aws:ResourceTag / aws:PrincipalTag) | Step 9 |67| Verify and audit a deployed governance baseline | Step 10 |68| Avoid common tag-policy and ABAC pitfalls | Anti-Patterns |69| Recent features (TagPolicy ABAC, CE tag-status API) | Recent AWS features |7071## Critical rules at a glance (do NOT bury these)72731. **`enforced_for` is what makes a tag policy enforce.** Without it,74 the policy defines allowed values but AWS does not block non-compliant75 `CreateTags` / `PutBucketTagging` / `TagResource` calls. A policy76 with `allowed_values` but no `enforced_for` is a recommendation, not77 a guardrail. Always list the resource types explicitly.782. **Organizations TagPolicy `allowed_values` matching is case-insensitive79 by default.** Set `tag_key.case_sensitive: true` if your downstream80 systems (CUR, ABAC conditions) depend on exact casing. A mismatch81 between the policy's case sensitivity and your IAM `StringEquals`82 conditions produces silent ABAC over-grants.833. **Tag policies cascade: org root → OU → account → resource.** A84 child policy does NOT override the parent — it is additive (union of85 constraints). You cannot relax a parent's `allowed_values` at the86 child level. If the root says Environment is `prod|dev`, an OU87 cannot add `staging` without editing the root policy.884. **Cost allocation tags require explicit activation in Billing.**89 Tagging a resource does NOT make the tag appear in Cost Explorer or90 the Cost and Usage Report (CUR). An administrator must activate each91 tag key via the Billing console or `ce update-cost-allocation-tags-status`.92 Activation takes up to 24 hours to propagate.935. **ABAC condition keys are case-sensitive at the IAM evaluation layer.**94 `aws:ResourceTag/Environment` with `StringEquals: "prod"` does NOT95 match a resource tagged `Prod`. If your tag policy allows96 case-insensitive values but your IAM condition uses `StringEquals`,97 you have a silent gap. Use `StringEqualsIgnoreCase` for ABAC98 conditions OR enforce case sensitivity in the tag policy.99100## Pre-flight: data requirements101102Designing a tag governance baseline requires these inputs:103104| Input | Source | Why |105|---|---|---|106| Organization ID + root ID | `aws organizations describe-organization` | Tag policy scope |107| Existing tag policies | `aws organizations list-policies --filter TAG_POLICY` | Don't overwrite blindly |108| OU structure | `aws organizations list-organizational-units-for-parent` | Where to attach policies |109| Account → environment mapping | Internal CMDB or account tags | Drives `Environment` allowed_values |110| Config recorder status | `aws configservice describe-configuration-recorders` | Required-tags rule needs recorder |111| Existing Config rules | `aws configservice describe-config-rules` | Avoid duplicate required-tags rules |112| Security Hub enablement | `aws securityhub describe-hub` | Finding aggregation target |113| Sample resource inventory | `aws resourcegroupstaggingapi get-resources` | Baseline current tag coverage |114| IAM principal tags (for ABAC) | `aws iam list-user-tags` / `list-role-tags` | ABAC source attributes |115116**If the input is malformed** (missing org ID, ambiguous scope), emit:117118```text119GOVERNANCE: <reference>120VERDICT: ERROR121REASON: Cannot design tag governance — Organizations root ID and target scope (resource types + accounts) are required.122GAP: Re-supply describe-organization output and the list of resource types to enforce tagging on.123```124125## Process — Workflow design (apply in order)126127### Step 0: Expert knowledge — non-obvious TagPolicy + tagging behaviors128129> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#step-0-expert-knowledge--non-obvious-tagpolicy--tagging-behaviors).130> Ten expert behaviors: enforcement only on enforced_for types, service:resource-type notation typos silently disable enforcement, policies block but never retro-fix, tag-resources is not atomic (check FailedResourcesMap), get-resources is region-scoped, required-tags max 5 keys, cost-tag activation is per-account, aws:PrincipalTag resolves at session creation, aws:RequestTag is create/tag-only, per-type tagging APIs need branching runbooks, system tags are not enforced.131132### Step 1: Define the tag strategy framework133134Every governance engagement starts with a canonical tag key set.135Default to this baseline and adjust per organizational requirements:136137| Tag key | Category | Required? | Allowed values (example) | Purpose |138|---|---|---|---|---|139| `Environment` | Required | Yes | `dev`, `staging`, `prod` | ABAC, cost split, blast-radius scoping |140| `Owner` | Required | Yes | email or team alias (free-form) | Accountability, alert routing |141| `Project` | Required | Yes | project code (free-form) | Cost allocation |142| `CostCenter` | Required | Yes | `cc-1001`, `cc-1002`, ... | Finance reporting |143| `Application` | Required | Yes | app name (free-form) | Grouping, dependency mapping |144| `Backup:Required` | Optional | No | `true`, `false` | Backup policy routing |145| `ComplianceTier` | Optional | No | `tier-1`, `tier-2`, `tier-3` | Audit cadence, SOC scope |146| `DataClassification` | Optional | No | `public`, `internal`, `confidential` | Macie, KMS routing |147148**Decision rules:**149- Never exceed 10 required tags — operational friction kills adoption.150- Free-form tags (`Owner`, `Project`) are acceptable for the FIRST pass;151 tighten to allowed_values once the set stabilizes.152- Map each tag key to a downstream consumer (Cost Explorer, ABAC, Config,153 Macie). A tag no consumer reads is dead weight.154155### Step 2: Author the Organizations TagPolicy JSON156157> Moved to [references/organizations-tag-policies.md](references/organizations-tag-policies.md#step-2-author-the-organizations-tagpolicy-json-moved-from-skillmd).158> Full recipe: enable-policy-type, the canonical baseline TagPolicy JSON (Environment/CostCenter/Owner/Project with case_sensitive + allowed_values + enforced_for), create-policy, attach to root/OU, negative-test enforcement, and the common-errors table (TagPolicyViolationException, silent no-enforcement, additive child limits, PolicyTypeNotEnabledException).159160### Step 3: Build EventBridge + Lambda auto-tagging161162> Moved to [references/auto-tagging-eventbridge-lambda.md](references/auto-tagging-eventbridge-lambda.md#step-3-build-eventbridge--lambda-auto-tagging-moved-from-skillmd).163> Full recipe: CloudTrail → EventBridge rule (EC2 RunInstances; S3 CreateBucket + Lambda CreateFunction) → the multi-service Python handler with account→Environment mapping, plus the Lambda execution-role permissions and the EventBridge-vs-SSM trade-off table.164165### Step 4: Resource Groups Tagging API bulk operations166167> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#step-4-resource-groups-tagging-api-bulk-operations).168> Bulk tag/untag, multi-region get-resources iteration, get-tag-keys/values, FailedResourcesMap discipline, and the Tag Editor console alternative (manual-only, never the primary mechanism).169170### Step 5: Wire Config `required-tags` managed rule171172> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#step-5-wire-config-required-tags-managed-rule).173> required-tags-core put-config-rule CLI (5 keys, 4 resource types), the required-tags-ext second rule for 6+ keys, and describe/get-compliance verification.174175### Step 6: Security Hub integration176177> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#step-6-security-hub-integration).178> FSBP tag controls ([EC2.26]/[S3.10]/[Lambda.3]), enable-security-hub, describe-standards-controls tag query, and the batch-import-findings custom-finding payload.179180### Step 7: Automated remediation (Config → SSM → Config re-evaluate)181182> Moved to [references/worked-examples.md](references/worked-examples.md#step-7-automated-remediation-config--ssm--config-re-evaluate).183> Pattern A: the Custom-AddRequiredTagsEC2 SSM Automation YAML + put-remediation-configurations wiring (Automatic: false); Pattern B: EventBridge on Config NON_COMPLIANT → Lambda; placeholder remediation requires a human-correction queue.184185### Step 8: Activate cost allocation tags186187Cost allocation tags do NOT appear in Cost Explorer or CUR until188activated. Two activation paths:189190**Path A — API (preferred for automation):**191192```bash193aws ce update-cost-allocation-tags-status \194 --cost-allocation-tags-status \195 '[{"TagKey":"Environment","Status":"Active"},196 {"TagKey":"Owner","Status":"Active"},197 {"TagKey":"Project","Status":"Active"},198 {"TagKey":"CostCenter","Status":"Active"}]'199```200201Verify:202203```bash204aws ce list-cost-allocation-tags \205 --status Active206```207208**Path B — Billing console (fallback):**209210```211Billing console → Cost Allocation Tags → user-defined cost allocation tags212→ Activate each tag key.213```214215**User-defined vs AWS-generated tags:**216217| Tag source | Examples | Activation |218|---|---|---|219| User-defined | `Owner`, `Environment`, `Project` | Must be activated manually |220| AWS-generated | `aws:createdBy`, `aws:cloudformation:stack-name` | `aws:createdBy` is auto-active; others must be activated |221222**Org payer vs member accounts:** in a consolidated billing family,223activate tags on the payer account. The payer's cost allocation tag224settings apply to the consolidated CUR. Member-account-specific tags225require per-member activation for member-account-local reporting.226227If the account does NOT support `ce update-cost-allocation-tags-status`228(legacy accounts or restricted IAM), the activation is a MANUAL step.229Flag `MANUAL_STEP_REQUIRED` with the Billing-console path.230231### Step 9: ABAC IAM policy design232233Attribute-based access control uses resource and principal tags in IAM234condition keys to make access decisions. ABAC scales better than RBAC235for large orgs because new resources and principals inherit access from236their tags — no policy edit needed.237238**ABAC condition keys:**239240| Condition key | Source | When evaluated |241|---|---|---|242| `aws:ResourceTag/<key>` | Resource tags | On every API call against the resource |243| `aws:PrincipalTag/<key>` | IAM user/role session tags | At session creation (fixed for session lifetime) |244| `aws:RequestTag/<key>` | Tags in the API request | On create / tag operations only |245| `aws:TagKeys` | List of tag keys in request | On tag operations |246247**ABAC policy pattern (team-scoped S3 access):**248249250> Policy JSON moved to [references/worked-examples.md](references/worked-examples.md#abac-policy-pattern--team-scoped-s3-access-moved-from-skillmd).251> Two statements: team-tag-gated object actions on team-data-* plus CreateBucket with aws:RequestTag/Team and ForAllValues aws:TagKeys allow-list.252253**ABAC prerequisites checklist:**2541. IAM principals (users / roles) are tagged with the attribute (e.g., `Team`).2552. Resources are tagged with the same attribute.2563. The IAM policy uses `aws:ResourceTag` matching `aws:PrincipalTag`.2574. The tag policy (Step 2) enforces that the attribute tag key exists on258 new resources (otherwise ABAC silently breaks for new resources).2595. Session tags are passed on `AssumeRole` via `--tags` or STS session260 tagging.261262**Common ABAC pitfall:** `StringEquals` is case-sensitive. If your tag263policy allows `case_sensitive: false` for `Environment`, but your IAM264condition is `StringEquals: {"aws:ResourceTag/Environment": "prod"}`,265a resource tagged `Prod` fails the check. Either enforce266`case_sensitive: true` in the tag policy OR use267`StringEqualsIgnoreCase` in the IAM condition.268269### Step 10: Audit and verify a deployed governance baseline270271> Moved to [references/diagnostic-commands.md](references/diagnostic-commands.md#step-10-audit-and-verify-a-deployed-governance-baseline).272> Six verification groups: tag policy attached/enforced, Config rule evaluating, auto-tagger Lambda firing, Security Hub findings, active cost allocation tags, resource tag coverage — plus the "passes 1-3 but zero cost tags = incomplete" rule.273274## STRICT output contract275276Every output MUST follow this exact structure. Deviations are bugs in277the skill.278279```text280GOVERNANCE: <reference>281SCOPE: <accounts / OUs / regions covered>282STRATEGY:283 - Required tags: <comma-separated keys>284 - Optional tags: <comma-separated keys or "none">285 - Enforcement layer: <Organizations TagPolicy | Config rule | both>286POLICY:287 - Type: <Organizations TagPolicy | Config required-tags | EventBridge auto-tagger | ABAC IAM | conformance pack>288 - Attached to: <root | OU | account | resource>289 - Template: <inline JSON/YAML or "see Step N">290AUTOMATION:291 - Auto-tagging: <EventBridge + Lambda | none>292 - Remediation: <SSM Automation | Lambda | none>293 - Trigger: <automatic | manual>294COMPLIANCE:295 - Detection: <Config rule name(s)>296 - Reporting: <Security Hub | Config dashboard | both>297 - Cost allocation: <active | inactive | pending>298VERDICT: AUTOMATED | MANUAL_STEP_REQUIRED299GAP: <if MANUAL_STEP_REQUIRED, the specific missing piece>300TEMPLATE: <full CLI snippet or policy JSON>301```302303### Worked example — AUTOMATED, full tag governance baseline304305```text306GOVERNANCE: org-tag-baseline307SCOPE: org root r-xxxx, all member accounts, us-east-1 + us-west-2308STRATEGY:309 - Required tags: Environment, Owner, Project, CostCenter, Application310 - Optional tags: Backup:Required, ComplianceTier, DataClassification311 - Enforcement layer: Organizations TagPolicy + Config required-tags rule312POLICY:313 - Type: Organizations TagPolicy + Config required-tags-core314 - Attached to: root (policy), Config recorder (rule)315 - Template: see Step 2 (TagPolicy JSON) + Step 5 (Config rule)316AUTOMATION:317 - Auto-tagging: EventBridge + Lambda on RunInstances, CreateBucket, CreateFunction318 - Remediation: SSM Automation Custom-AddRequiredTagsEC2 (manual trigger, placeholder values)319 - Trigger: manual (placeholder remediation requires human correction)320COMPLIANCE:321 - Detection: required-tags-core, required-tags-ext322 - Reporting: Security Hub FSBP controls + Config compliance dashboard323 - Cost allocation: active (Environment, Owner, Project, CostCenter via ce API)324VERDICT: AUTOMATED325GAP: None326TEMPLATE:327 aws organizations create-policy --type TAG_POLICY --name baseline-tag-policy --content file://tag-policy.json328 aws configservice put-config-rule --config-rule '{"ConfigRuleName":"required-tags-core","Source":{"Owner":"AWS","SourceIdentifier":"REQUIRED_TAGS"},"Scope":{"ComplianceResourceTypes":["AWS::EC2::Instance","AWS::S3::Bucket","AWS::Lambda::Function","AWS::RDS::DBInstance"]},"InputParameters":"{\"tag1Key\":\"Environment\",\"tag2Key\":\"Owner\",\"tag3Key\":\"Project\",\"tag4Key\":\"CostCenter\",\"tag5Key\":\"Application\"}"}'329 aws ce update-cost-allocation-tags-status --cost-allocation-tags-status '[{"TagKey":"Environment","Status":"Active"},{"TagKey":"Owner","Status":"Active"},{"TagKey":"Project","Status":"Active"},{"TagKey":"CostCenter","Status":"Active"}]'330```331332### Worked example — MANUAL_STEP_REQUIRED, cost allocation activation on legacy account333334> Moved to [references/worked-examples.md](references/worked-examples.md#worked-example--manual_step_required-cost-allocation-activation-on-legacy-account).335> Full MANUAL_STEP_REQUIRED report: legacy payer blocks ce update-cost-allocation-tags-status; Billing-console path + 24h propagation.336337## Anti-Patterns — NEVER do these things338339- NEVER publish a TagPolicy without `enforced_for`. The policy with340 `allowed_values` but no `enforced_for` is advisory — AWS does not341 block non-compliant operations. Operators assume enforcement and342 drift accumulates silently.343344- NEVER assume tag policy child policies can override the parent. They345 cannot. Child OU and account policies are additive (union). To relax346 a parent's `allowed_values`, edit the parent. A common mistake is347 attaching a child policy with `allowed_values: ["staging"]` and348 assuming it merges with the parent's `["dev", "prod"]` — it does349 not. The child can only further restrict.350351- NEVER use `StringEquals` for ABAC conditions when the tag policy has352 `case_sensitive: false`. The case-insensitive tag policy allows353 `Prod` and `prod`; the IAM condition matches only `prod`. This354 produces silent under-grants (legitimate access denied) OR355 over-grants (a `Deny` with `StringNotEquals` silently passes). Use356 `StringEqualsIgnoreCase` for ABAC conditions OR enforce357 `case_sensitive: true` in the tag policy.358359- NEVER assume cost allocation tags are active by default. They are360 NOT. A fully tagged fleet with zero activated tag keys produces361 zero cost-dimension data in Cost Explorer and CUR. Always verify362 with `ce list-cost-allocation-tags --status Active`.363364- NEVER deploy a single Config `required-tags` rule for more than 5365 tag keys. The managed rule silently ignores keys beyond the 5th366 (`tag6Key`...`tag7Key` are not accepted parameters). Deploy multiple367 required-tags rules (e.g., `required-tags-core`, `required-tags-ext`).368369- NEVER assume `resourcegroupstaggingapi get-resources` returns global370 results. It is region-scoped. Querying only `us-east-1` misses371 resources in other regions. Iterate over all enabled regions.372373- NEVER ignore `FailedResourcesMap` in a `tag-resources` response. A374 non-empty map means some resources were not tagged. The API call375 "succeeded" but the tagging is partial. Log, retry, and alert on376 persistent failures.377378- NEVER wire auto-tagging without a tag policy. The Lambda stamps379 tags on creation, but nothing stops a human from modifying them380 afterward. Pair auto-tagging with a TagPolicy that enforces381 `allowed_values` on the same keys.382383- NEVER set `Automatic: true` on placeholder-tag remediation (e.g.,384 `Environment: unknown`) without a downstream human-correction queue.385 The placeholder satisfies the Config rule but pollutes ABAC and386 cost reporting. Always flag placeholder remediation as a secondary387 manual step.388389- NEVER use `aws:RequestTag` in a policy governing read operations390 (`s3:GetObject`, `ec2:DescribeInstances`). `aws:RequestTag` is only391 present on create / tag API calls. A `Deny` with `aws:RequestTag`392 on a read operation silently never matches.393394- NEVER assume IAM principal tags propagate to existing sessions.395 `aws:PrincipalTag` is resolved at session creation. Changing a396 user's `Team` tag does not affect active sessions until they397 re-authenticate. Coordinate tag changes with session refresh.398399- NEVER forget that Organizations TagPolicy does NOT enforce on400 AWS-generated tags (`aws:cloudformation:stack-name`,401 `aws:createdBy`). These are system tags. User-defined policies apply402 only to user-supplied keys. If your ABAC depends on `aws:createdBy`,403 there is no enforcement lever — it is always present but read-only.404405- NEVER deploy ABAC without tagging the IAM principals first. An ABAC406 policy using `aws:PrincipalTag/Team` on an untagged role silently407 denies all access (empty string does not match). Verify principal408 tags with `iam list-user-tags` / `list-role-tags` before deploying409 the policy.410411- NEVER bulk-tag resources across accounts without assuming a role in412 each target account. The Tagging API operates within the caller's413 account. A cross-account bulk-tag script requires `sts:AssumeRole`414 into each member account.415416## Pre-flight safety checks (run before applying any tag governance CLI)417418> Moved to [references/diagnostic-commands.md](references/diagnostic-commands.md#pre-flight-safety-checks-run-before-applying-any-tag-governance-cli).419> Gates: CONFIRM prompt, back up the tag policy (no version history), sandbox-OU test before root, payer API support check, inventory principal tags before ABAC.420421## Appendix A — Canonical tag key reference422423> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#appendix-a--canonical-tag-key-reference).424> 12-row canonical key table: required (Environment/Owner/Project/CostCenter/Application/Team), optional (Backup:Required/ComplianceTier/DataClassification), auto (CreatedAt/CreatorARN/CreatedVia) with consumers.425426## Appendix B — Decision tree (which enforcement layer)427428```429Is the requirement to PREVENT non-compliant tags at creation?430├─ Yes → Organizations TagPolicy with enforced_for (Step 2)431│ (blocks the API call; does not fix existing resources)432│433└─ No → Is the requirement to DETECT and REPORT missing tags?434 ├─ Yes → Config required-tags rule (Step 5) + Security Hub (Step 6)435 │436 └─ No → Is the requirement to AUTO-STAMP tags on creation?437 ├─ Yes → EventBridge + Lambda auto-tagger (Step 3)438 │439 └─ No → Is the requirement to REMEDIATE existing untagged resources?440 ├─ Yes → Config → SSM Automation / Lambda remediation (Step 7)441 │442 └─ No → Is the requirement to USE tags for access decisions?443 ├─ Yes → ABAC IAM policy (Step 9)444 │445 └─ No → Is the requirement for COST REPORTING?446 ├─ Yes → Cost allocation tag activation (Step 8)447 │448 └─ Default: tag strategy framework (Step 1)449```450451## Recent AWS features (2024-2026)452453> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#recent-aws-features-2024-2026).454> TagPolicy ABAC integration, ce update-cost-allocation-tags-status GA, Tagging API pagination lifts, multi required-tags rules, custom Security Hub findings, EventBridge cross-account routing, STS session tagging.455456## Expert heuristic: tag governance blast radius457458> Moved to [references/advanced-patterns.md](references/advanced-patterns.md#expert-heuristic-tag-governance-blast-radius).459> Non-negotiable: sandbox-OU test before root; includes the why (fleet-wide CreateTags outage), five scoping techniques, the 3-phase DETECT→sandbox-ENFORCE→root-ENFORCE rollout, cost-tag and ABAC blast radius, and BLAST_RADIUS/VALIDATION_PHASE output fields.460461462## References (load on demand)463464- [advanced-patterns](references/advanced-patterns.md) — Step 0 expert knowledge, Step 4 Tagging API bulk ops, Step 5 Config rule, Step 6 Security Hub, Appendix A key reference, Recent AWS features, and the blast-radius expert heuristic moved from SKILL.md465- [worked-examples](references/worked-examples.md) — Step 7 remediation recipes (SSM YAML + wiring + Pattern B), the ABAC policy JSON, and the MANUAL_STEP_REQUIRED worked example moved from SKILL.md466- [diagnostic-commands](references/diagnostic-commands.md) — Step 10 baseline audit commands and the pre-flight safety checks moved from SKILL.md467- [organizations-tag-policies](references/organizations-tag-policies.md) — now also holds the full Step 2 TagPolicy authoring recipe moved from SKILL.md468- [auto-tagging-eventbridge-lambda](references/auto-tagging-eventbridge-lambda.md) — now also holds the full Step 3 EventBridge + Lambda auto-tagging recipe moved from SKILL.md469470## Domain471472AWS CloudOps / Governance Automation — Tag governance, ABAC, cost473allocation.474475## AWS documentation476477- **Organizations Tag Policies** — https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html478- **Resource Groups Tagging API** — https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/overview.html479- **AWS Config required-tags Rule** — https://docs.aws.amazon.com/config/latest/developerguide/required-tags.html480- **ABAC for AWS** — https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_attribute-based-access-control.html481- **Cost Allocation Tags** — https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html482- **Security Hub Foundational Security Best Practices** — https://docs.aws.amazon.com/securityhub/latest/userguide/fsbp-standard.html