Skip to content
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

Question about "template is too large to deploy" error #601

Open
abend-arg opened this issue Nov 19, 2024 · 1 comment
Open

Question about "template is too large to deploy" error #601

abend-arg opened this issue Nov 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@abend-arg
Copy link

abend-arg commented Nov 19, 2024

We have one project where the template we are trying to deploy is very long (around 550k characters). I noticed that there is one specific validation that limits the max number of characters per template to 460k as stated here:

if len(templateBody) > 460800 {

Is there any specific reason for that? There is no limitation for that when uploading the template manually using the AWS console.

@ericzbeard
Copy link
Contributor

The max size that can be uploaded to S3 is 1Mb, so it should be 1,048,576. The following check for 51,200 bytes is correct as the threshold for needing to upload the template. I think 460,800 was the limit when this code was written.

@ericzbeard ericzbeard added bug Something isn't working and removed investigating labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants