The location and behavior of files used to set AWS Elastic Beanstalk environment properties (e.g. static directory mappings or environment variables) seems to have changed so that much of the information available online appears to be out of date (or at best confusing). In particular, while it is clear that only a single file is currently required for configuration of the environment itself, it is not clear what the relationship between
.elasticbeanstalk/optionsettings.*
and
.ebextensions/*.config
currently is.
Which of these files should be used for setting AWS EB environment properties (e.g. static directory mappings or environment variables), using the current API and (3.x) CLI?
For example, where should a file with contents like this go?
option_settings:
"aws:elasticbeanstalk:application:environment":
SOME_PUBLIC_CONFIG: "true"
SOME_OTHER_THING: "foo"
"aws:elasticbeanstalk:container:python:staticfiles":
"/static/": "myapp/static/"