Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestions on using different .env files for different environments? #30

Closed
exzachlyvv opened this issue Sep 16, 2020 · 3 comments
Closed

Comments

@exzachlyvv
Copy link

I'm wondering if there are any suggestions on using a different .env file for each environment?

If no best practices, I plan on using https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions-functions.html#ebextensions-functions-ref

@exzachlyvv
Copy link
Author

For future reference:

files:
  "/tmp/.env":
    mode: "000777"
    owner: root
    group: root
    authentication: "S3Auth"
    # download the ".env.{environment name in the eb console}"
    source: 'https://elasticbeanstalk-eu-central-1-xxxxxxxxxxxx.s3.eu-central-1.amazonaws.com/.env.`{"Ref": "AWSEBEnvironmentName" }`'

worked well for me.

@hientt53
Copy link

excellent, let me try. I have same problem.

@rennokki
Copy link
Owner

I have updated the readme to refer to this issue: 9296bdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants