Elastic Beanstalk connect to RDS from shell SSH

后端 未结 3 823
走了就别回头了
走了就别回头了 2021-02-02 17:16

I have a python application on an Elastic Beanstalk EC2 instance which is connected to an PostgreSQL RDS.

My application works fine and uses the environment variables th

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 18:15

    Unfortunately, environment variables are not available outside of Elastic Beanstalk container.

    As an alternative you can add .profile file to ec2-user home and set those environment variables there, for SSH sessions. Remember, that the file will be gone on rebuild. To make it permanent, add the profile file to your project and copy to ec2-user home with container command.

提交回复
热议问题