Commit 7ae4bf1
authored
fix(aws): complete drift detection access (#191)
## Summary
- add the stack-scoped `cloudformation:DetectStackResourceDrift`
permission required by full-stack drift detection
- add region-scoped `cloudformation:BatchDescribeTypeConfigurations`,
also required by AWS for drift detection
- preserve the operator/data-plane separation
## Evidence
- `npm run check`
- `npm test` (630 passed, 6 skipped)
- `npm run build`
- `sam validate --lint --template-file template.yaml`
- live CloudFormation template validation
- focused Access Analyzer validation: zero errors/security warnings
## Live failure reproduced
After the least-privilege stack reached `CREATE_COMPLETE` with
termination protection and the retained-resource stack policy enabled,
`status aws --detect-drift` failed specifically on
`cloudformation:DetectStackResourceDrift`. AWS documents that action and
`BatchDescribeTypeConfigurations` as required companions to
`DetectStackDrift`.
Part of #174.1 parent c2d2f86 commit 7ae4bf1
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
432 | 439 | | |
433 | 440 | | |
434 | 441 | | |
| |||
439 | 446 | | |
440 | 447 | | |
441 | 448 | | |
| 449 | + | |
442 | 450 | | |
443 | 451 | | |
444 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
0 commit comments