Skip to content

Advanced Elastic Beanstalk

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 are files written in YAML or JSON format. They can have a filename of your choice but must have a .config extension and be saved inside a folder called .ebextension.

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 allong with the rest of your application code.

Configuration Example

{
    "option_settings": [
        {
            "namespace": "aws:elasticbeanstalk:application",
            "option_name": "My Application Healthcheck URL",
            "value": "/healthcheck"
        }
    ]
}

This .config file configures an Application Healh check URL, which will be used by Elastic Load Balancer.

Advanced Elastic Beanstalk Exam Tips

  • You can customize your Elastic Beanstalk environment by adding configuration files
  • The files are written in YAML or JSON
  • Files have a .config extension
  • The .config files are saved to the .ebextensions folder
  • Your .ebextensions folder must be located in the top-level directory of your application source code bundle