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,140 points
71 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 56,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,090 points
38 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 in AWS by Pragya
31 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.