How to specify sensitive environment variables at deploy time with Elastic Beanstalk

后端 未结 5 1069
既然无缘
既然无缘 2020-12-23 21:42

I am deploying a Python Flask application with Elastic Beanstalk. I have a config file /.ebextensions/01.config where among other things I set some environment

5条回答
  •  北海茫月
    2020-12-23 22:24

    Some of the other answers are mentioning that there might be a better way with Parameter Store / Secrets Manager.

    I described how I did this with AWS Systems Manager Parameter Store (which also gives you an interface to Secrets Manager) in this answer: https://stackoverflow.com/a/59910941/159178. Basically, you give your Beanstalk ECS IAM role access to the relevant parameter and then load it from your application code at startup.

提交回复
热议问题