Soru

Zorluk: OrtaAWS Elastic Beanstalk

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.)

  1. Create a directory named .ebextensions at the root of the application source bundle.Cevap
  2. Create a configuration file ending with the .config extension inside the .ebextensions directory.Cevap
  3. C
    Create a directory named ebextensions (without a leading dot) at the root of the application source bundle.
  4. D
    Create a directory named .ebextensions inside the application source code directory (such as src/ or bin/).
  5. E
    Define 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

1
Determine the directory structure required for Elastic Beanstalk configuration files.
Identify that a directory named .ebextensions must be created at the root of the application source bundle.
Elastic Beanstalk looks for configuration files specifically in this location at the root level during deployment.
2
Determine the file naming convention and format for these configurations.
Identify that files must use a .config extension (e.g., setup.config) and contain YAML or JSON formatted configuration blocks such as packages and option_settings.
This is the required format and suffix for Elastic Beanstalk to recognize and parse configurations.

Anahtar Kavram

Configuring AWS Elastic Beanstalk environments using .ebextensions configuration files
Bu soruyu puanla