Pass .env variables in AWS EC2 Instance.

Prateek Diwedi
2 min readFeb 24, 2021
.env in aws

This article is for those people who have an instance running on AWS EC2 and they have a new update and that update needs to pass some secret info like an api key or a password which we usually pass through .env file during our development.

So, I also got this problem, i added a new functionality in my node.js backend which was deployed on Elastic beanstalk and it took me some time to find the…

--

--