-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudformation stack refactor fails with templateBody size constraint error #9297
Comments
+1 experiencing this issue with all templates in S3. ( |
We are also experiencing the same issue |
Experiencing the same issue - aws-cli/2.24.7 Python/3.12.6 Linux/5.15.167.4-microsoft-standard-WSL2 exe/x86_64.ubuntu.24 |
Thanks for reporting this @SorinFlueras, I am able to reproduce the issue and can see getting error with template size >50kb. |
So this is whats mentioned in AWS Docs -https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html ![]() Stack refactoring -https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-refactoring.html |
.Seems to be a service API Issue, created an internal ticket with them for further analysis -P202904574 |
On a similar note, my first command doesn't succeed at all. Unable to parse response (syntax error: line 1, column 0), invalid XML received. Further retries may succeed: One file is 203 KB and the other is 41 KB. |
@RyanFitzSimmonsAK can this get a higher priority please? We are stuck in the middle of migration because of this bug. |
We have not heard back from the service team yet. I just reached out again and emphasized that this is blocking people. I'll let you know when I have any updates. |
Describe the bug
Issue Summary
The
aws cloudformation create-stack-refactor
command executes successfully and returns a StackRefactorId. However, when runningaws cloudformation describe-stack-refactor
on the returned StackRefactorId, the following error appears:This happens even when TemplateBody is not passed and only TemplateURL is used.
Command used
(My templates in S3 are 59.1 KB and 2.7 KB.)
Regression Issue
Expected Behavior
• The stack refactor operation should proceed successfully because TemplateBody is not provided.
• Since TemplateURL is being used, the 51200-character limit should not apply.
• The describe-stack-refactor command should not fail due to a template size limitation.
Current Behavior
Command fails as described in Issue summary
Reproduction Steps
Run the
aws cloudformation create-stack-refactor
command using TemplateURL from S3 with a size bigger than 50 KB.Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.24.2 Python/3.12.6 Darwin/24.3.0 exe/x86_64
Environment details (OS name and version, etc.)
macOS Sequoia 15.3
The text was updated successfully, but these errors were encountered: