feat(savings-modifications): grant tag-write on bought commitments #26
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 167 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.307
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #26"
general
weight: 0.35
UgoM
Summary
CloudFormation counterpart of cxmlabs/terraform-aws-cxm-integration#46.
CXM now tags every commitment it buys (CXM identity, buy list, opportunity). The customer role had no tag-write action outside Savings Plans, so AWS refuses RDS / ElastiCache / MemoryDB purchases that carry tags (dry-run gates on the tag action), and EC2 RIs can't be tagged after purchase.
Adds a
CommitmentTaggingPermissionsstatement to the savings-modifications policy incxm-integration-aws-root.yamlandcxm-integration-aws-sub-account.yaml:| Action | Resource |
| -- | -- |
|
ec2:CreateTags|arn:aws:ec2:::reserved-instances/||
rds:AddTagsToResource|arn:aws:rds:::ri:||
elasticache:AddTagsToResource|arn:aws:elasticache:::reserved-instance:||
memorydb:TagResource|arn:aws:memorydb:::reservednode/|Scoped to reservation ARNs only, never
*. Savings Plans unchanged (AWSSavingsPlansFullAccess). OpenSearch / Redshift reservations have no tag API. Only applied whenEnableSavingsModifications = "true".Refs CLO-9575
Test plan
cfn-linton both templatesCreateTagson a purchased EC2 RI succeeds🤖 Generated with Claude Code