DEV Community

Discussion on: 07 best practices when using AWS SSM Parameter Store

Collapse
 
adshin21_ profile image
Aditya • Edited

How to add the key, val pair in react .env file, after fetching from aws?

Collapse
 
hoangleitvn profile image
Hoang Le

If you are using .env file locally, I recommend using env-cmd library, I parse the environments defined in the .env file and assign the environment variables. For the local environment, we skip fetching from the AWS since you can define your variables easily