If a CloudFormation stack grows bigger and bigger, you might face an error like at 'templateBody' failed to satisfy constraint: Member must have length less than or equal to 51200
which simply means: your CloudFormation template is too big and you have to split it. I also wrote a blog post about two options you have in
order to reduce your CloudFormation template size.
In this example, I've added the code for using AWS::Include command.
Run:
export LAMBDA_BUCKET=<your-lambda-bucket> && ./deploy.sh