A developer is packaging a Node.js web application for deployment to AWS Elastic Beanstalk. The application requires the installation of an external system tool (git) and must define a custom environment variable named APP_STAGE set to production. The developer wants to manage these configurations as code within the application source bundle. Which two actions must the developer take to accomplish this? (Select TWO.)
- Create a directory named .ebextensions at the root of the application source bundle.Cevap
- Create a configuration file ending with the .config extension inside the .ebextensions directory.Cevap
- CCreate a directory named ebextensions (without a leading dot) at the root of the application source bundle.
- DCreate a directory named .ebextensions inside the application source code directory (such as src/ or bin/).
- EDefine the environment variables and system packages in the .elasticbeanstalk/config.yml file.
Cevap
Create a directory named .ebextensions at the root of the application source bundle, and create a configuration file ending with the .config extension inside that directory.
To customize the AWS Elastic Beanstalk environment (such as installing packages or setting environment variables) using the application source bundle, the configuration files must be stored in a directory named '.ebextensions' located at the root of the application source bundle. These files must have a '.config' extension and contain valid YAML or JSON syntax.
Adım Adım Çözüm
Anahtar Kavram
Configuring AWS Elastic Beanstalk environments using .ebextensions configuration files