Member must have length less than or equal to 51200

637 views
Skip to first unread message

Dhaivat Upadhyay

unread,
May 24, 2021, 6:01:01 AM5/24/21
to cloudtools-dev
As we keep adding to our environment configuration, we are seeing issues with the size of the template body.

I am seeing the following error:

at 'templateBody' failed to satisfy constraint: Member must have length less than or equal to 51200

Wanted to check if anyone else in the community has faced this issue and if so, howto resolve it with troposphere.

Mark Peek

unread,
May 24, 2021, 10:21:31 AM5/24/21
to Dhaivat Upadhyay, cloudtools-dev
A few things come to mind:
- Remove the json pretty printing by setting Indent=None
- Switch to yaml
- Upload to S3 first for a 1MB limit
- Compose your stacks into Modules

Mark

--
You received this message because you are subscribed to the Google Groups "cloudtools-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudtools-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudtools-dev/84e08165-ae07-482a-a7c7-9d0ed29d71ben%40googlegroups.com.

Dhaivat Upadhyay

unread,
May 24, 2021, 11:20:31 AM5/24/21
to cloudtools-dev
Appreciate the quick response.

Switched to 2. Changed the output to YAML. Will resolve the issue temporarily.

A little new to the Troposphere Universe. Would you have example for the following
- Upload to S3 first for a 1MB limit
 -- I believe you mean upload the yaml for base resources and any new resource can call template-file? Is that correct?
- Compose your stacks into Modules
 -- Any example I can reference for creating modeules witll be helpful. We have already broken it down into vpc, 
Reply all
Reply to author
Forward
0 new messages