Add AWS::CloudFormation::StackSet support to cloudformation package - #10655
Draft
GarrettBeatty wants to merge 1 commit into
Draft
GarrettBeatty wants to merge 1 commit into
GarrettBeatty wants to merge 1 commit into
Conversation
Teach the `aws cloudformation package` command to upload local templates referenced by the TemplateURL property of AWS::CloudFormation::StackSet resources, mirroring the existing AWS::CloudFormation::Stack behavior. Ports the change from the long-open v1 PR #5591 to v2. Fixes CLI-1773 / V273201798.
GarrettBeatty
marked this pull request as ready for review
September 16, 2026 19:31
GarrettBeatty
marked this pull request as draft
September 17, 2026 14:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the
AWS::CloudFormation::StackSetresource to theaws cloudformation packagecommand. When a StackSet'sTemplateURLproperty references a local template file,packagenow uploads it to S3 and rewrites the property to the S3 URL — mirroring the existing behavior forAWS::CloudFormation::Stack.This ports the long-open v1 PR #5591 to the
v2branch (v1 is in maintenance mode). The sibling CodeCommit change (#5568) already shipped in v2; this fills the remaining gap. Tracked by CLI-1773 / V273201798.Changes
artifact_exporter.py: newCloudFormationStackSetResource(subclassesCloudFormationStackResource,TemplateURLproperty) + registered inRESOURCES_EXPORT_LIST._package_description.rst: documents the newly supported property.test_artifact_exporter.py: addstest_export_cloudformation_stackset..changes/next-release/.Fixed the original PR's casing (
StackSet, notStackset) to match the CFN resource type.Testing
test_artifact_exporter.py— 77 passed (incl. the new test).packageuploaded the child template and rewroteTemplateURLto anhttps://s3...URL;deployof the packaged template created aSELF_MANAGEDStackSet (ACTIVE), confirming CFN could consume the generated URL. Stack, StackSet, and bucket were deleted after.Notes
Pre-commit ruff flags pre-existing issues in these files (e.g.
super(__class__, self)at lines 309/469, unused vars in unrelated tests) that are not part of this change; left untouched to keep the diff minimal.