Advanced ElasticBeanstalk
Configuring Elastic Beanstalk
You can customize your Elastic Beanstalk environment using Elastic Beanstalk configuration files.
- e.g. you can define packages to install, create linux users and groups, run shell commands, specify services to enable or configure your load balancer, etc.
These files are written in YAML or JSON format. They can have a filename of your choice but must have a .config extention and be saved inside a folder called .ebextensions.
Location of Configuration Files
The .ebextensions folder must be included in the top-level directory of your application source code bundle.
This means that the configuration files can be placed under source control along with the rest of your application code.
***EXAM QUESTION
Config Example
{
"option_settings":
[
{
"namespace":"aws:elasticbeanstalk:application",
"option_name":"My Application Healthcheck URL",
"value":"/healthcheck"
}
]
}
This .config file configures an Application Health Check URL which will be used by the elastic load balancer.