Skip to content

fix: StackSet preflight — check both service-managed and self-managed principals#84

Merged
hyunsies merged 1 commit into
mainfrom
fix/stackset-preflight-check
Apr 29, 2026
Merged

fix: StackSet preflight — check both service-managed and self-managed principals#84
hyunsies merged 1 commit into
mainfrom
fix/stackset-preflight-check

Conversation

@hyunsies
Copy link
Copy Markdown
Contributor

Summary

  • StackSet trusted access preflight only matched stacksets.cloudformation.amazonaws.com (self-managed)
  • Control Tower orgs use member.org.stacksets.cloudformation.amazonaws.com (service-managed)
  • Changed to contains(ServicePrincipal,'stacksets.cloudformation') to match both
  • Upgraded from warning to blocking error with specific remediation command

Context

CT3 collision tests C03/C04 failed because the sandbox has service-managed StackSets only. The preflight showed a warning but didn't block — the deploy proceeded and failed with a cryptic CFN error. Customers in the same setup would hit the same issue.

Test plan

  • Verified sandbox has member.org.stacksets.cloudformation.amazonaws.com enabled
  • Confirmed old preflight query returns empty for service-managed orgs
  • sync-check.py passes
  • Layer 1 CI

🤖 Generated with Claude Code

…principals

The StackSet trusted access preflight checked only
`stacksets.cloudformation.amazonaws.com` (self-managed) but Control Tower
orgs use `member.org.stacksets.cloudformation.amazonaws.com` (service-managed).
Changed to `contains(ServicePrincipal,'stacksets.cloudformation')` to match
both. Also upgraded from warning to blocking error — without trusted access,
StackSet creation fails with a cryptic CFN error.

CT3 finding: C03/C04 StackSet tests failed because the sandbox has
service-managed only; the preflight didn't catch it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hyunsies hyunsies merged commit e00d47e into main Apr 29, 2026
17 checks passed
@hyunsies hyunsies deleted the fix/stackset-preflight-check branch April 29, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant