Elastic Beanstalk change environment variables wipes out WSGIPassAuthorization

0 votes

I have a custom file in .ebextensions:

        command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'   

When I change the environment variables through the Elastic Beanstalk UI, it wipes out the WSGIPassAuthorization and I need to re-deploy the code.

Any way to correct that?

Oct 26, 2018 in AWS by findingbugs
• 3,260 points

1 answer to this question.

0 votes

Currently when you deploy a new config, your eb-extensions do not run. You'll need to move your option settings into eb-extensions and then do new application deploys to ensure that your customizations always take hold. More details on how to pass option settings in eb-extensions can be found here - 


answered Oct 26, 2018 by Priyaj
• 58,140 points

Related Questions In AWS

0 votes
1 answer

How do you pass custom environment variable on Amazon Elastic Beanstalk (AWS EBS)?

Old way  - use .ebextensions/*.config in AWS ...READ MORE

answered Sep 11, 2018 in AWS by Archana
• 4,150 points
0 votes
1 answer
0 votes
1 answer

Terminate Elastic BeanStalk Environment - AWS

To terminate your Elastic Beanstalk environment, follow ...READ MORE

answered Apr 16, 2019 in AWS by Pragya
0 votes
1 answer

How elastic beanstalk work in real time environment?

Check this video for that: https://www.youtube.com/watch?v=96DJ2Og90hU READ MORE

answered Oct 19, 2020 in AWS by Kim
0 votes
1 answer