ECS Files Sidecar - Import files from multiple sources into task volumes

Hello fellow AWS ECS users.

I am sure a lot of us have found imaginative ways over the years to load configuration into our containerized tasks on ECS. For my company and I, we moved to AWS Fargate very early on in the game and have been toying a lot with environment variables which allowed us to use the same docker image in all environment and change configuration based solely on the environment.

But then it means that the application needs additional logic to retrieve files and contents, and some images that we can use off the shelf simply have not been created to use environment variables override.

So welcome a new addition to the Compose-X family, ECS Files Composer | on ECR.

This is very early in the game and focused at first on the most common use-cases seen in my experience, but would love to see what the appetite for more features is from the community.

The configuration input can be a JSON formatted string, a YAML file, can be set as an environment variable, or even, stored itself in S3 or SSM parameters.

The structure of the files to download follows nearly identically the AWS CFN ConfigSet.Files so that people who were familiar with it for EC2/LT/ASG configuration can re-use that too.

There will soon be added a Jinja post rendering that will allow to change the content of the file from a template you defined that you need updating, so that the final file can content further configuration from your environment. Not quite as featured as what you’d do with Ansible, but that is the idea.

Enough talking about it from me, please post back some feedback and open Feature Requests on GH.

Nice!

This is amazing and is exactly what I needed! Thanks!

Well I am glad. I am actually adding and updating the docs. Let me known if there is something missing you’d need. Feel free to open an issue