DEV Community

Discussion on: How to dockerize your Node.js Express application for AWS Fargate?

Collapse
 
jesusz0r profile image
Jesus Mendoza

Hey Andreas. Thanks for the post!
Do you know how to manage .env files safely when deploying to ECS?

I deployed my application. Passed --env MONGO_URI=asdasd and is not working. I also defined the MONGO_URI as an environment variable in the Task Definition and is not working either. The only solution I find is to create an .env file and commit it with my code but I'm afraid I'll reveal my AWS keys