top | item 37839776

(no title)

willthames | 2 years ago

Does ECS support mounting configuration files (without needing the configuration file to be on the host)?

Being able to mount secrets and configmaps into the container file system (without having to modify the container image to provide an entrypoint) definitely seemed to be one major advantage of kubernetes over ECS a few years back.

discuss

order

ctvo|2 years ago

In the case of secrets, it can populate secrets automatically from SecretsManager into environment variables.

See a CDK example:

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_...

You can setup something to mount configuration files stored in say S3 -> into an EFS volume that you attach to all ECS tasks, for example.

The problem with ECS is that everything, including service discovery, is an integration with another AWS service. Making it even more difficult to ever migrate, but it does support much of what folks use Kubernetes for.