Elastic Beanstalk change environment variables wipes out WSGIPassAuthorization

0 votes

I have a custom file in .ebextensions:

container_commands:
    02_wsgipass:
        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
2,514 views

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 - 

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-resources.html

answered Oct 26, 2018 by Priyaj
• 58,020 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,170 points
1,267 views
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
1,067 views
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
612 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP