Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudFormation parametes limit exceeded

I have exceeded parameters limit in cloudformation template.Is there any way that I can keep all parameters in s3 as a file and include to my template

like image 802
Rehan Ch Avatar asked Nov 26 '25 23:11

Rehan Ch


1 Answers

It appears that you are saying you have an AWS CloudFormation template that has a number of parameters, and you are unable to create the stack because there are too many parameters.

The CloudFormation limits documentation says:

Maximum number of parameters that you can declare in your AWS CloudFormation template: 60 parameters

To specify more parameters, you can use mappings or lists in order to assign multiple values to a single parameter.

This advice is suggested that some parameters could be combined and passed through as one parameter (a list). Alternatively, if multiple values are related to each other you could create a mapping such that one input value allows multiple values to be retrieved via a lookup.

Worst case, you could use an AWS Lambda function as a Custom Resource to perform additional logic and return values -- these values could be retrieved from an object in Amazon S3 or through some other processing.

Also, it is normally recommended to avoid having large, complex templates. Instead, break it into smaller templates and call nested templates. This makes it easier maintain and debug.

like image 190
John Rotenstein Avatar answered Nov 29 '25 18:11

John Rotenstein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!