Does ECS support environment vars from S3 files?

I have an ECS task created with cdk which gets environment variables from an S3 file. It works fine on AWS, but localstack isn’t setting the environment variables on the container (checked using docker inspect). Is using S3 files for env vars supported?

taskDefinition.addContainer("example", {
   image: ...,
   environmentFiles: [
        ecs.EnvironmentFile.fromBucket(bucket, `task.env`),

I’m running localstack-pro 3.2.0

Hi @arsh , you are right. At the moment ECS does not support reading environment variables from files stored in S3. If you wish to see this feature implemented, please add a feature request via our issue tracker and it will be prioritised accordingly.