Hi I am using AWS Cloud Formation Template for defining ECS services. Over the course of time, the number of services have increased and correspondingly, I also have a large number of environment variables. (Around 20). Now I am getting the following error when updating the stack.
Lambda was unable to configure your environment variables because the environment variables you have provided exceeded the 4KB limit.
I have checked the corresponding AWS thread here. It mentions the following as the way forward.
AWS Systems Manager Parameter Store
Amazon Simple Storage Service (Amazon S3)
However, I am already keeping my variable definitions in S3 as parameters.Only the references are kept in cloud formation template file. What should be the approach to solving this problem?
2