Soru

Zorluk: OrtaAWS Elastic Beanstalk

A developer is packaging a web application for deployment to AWS Elastic Beanstalk. To configure custom environment properties and OS-level packages, the developer creates a configuration file named 01_setup.config. However, after deploying the application source bundle zip file, the developer notices that none of the custom configurations are applied to the EC2 instances. Where must the configuration file be located within the application source bundle for AWS Elastic Beanstalk to detect and process it?

  1. A
    Inside a folder named ebextensions (without a leading dot) placed at the root of the application source bundle
  2. B
    At the root of the application source bundle, with the line Transform: AWS::Serverless-2016-10-31 declared at the top of the file
  3. Inside a folder named .ebextensions placed at the root of the application source bundleCevap
  4. D
    Inside a folder named .ebextensions nested within the application's source code directory, such as src/.ebextensions

Cevap

Inside a folder named .ebextensions placed at the root of the application source bundle
AWS Elastic Beanstalk requires configuration files to be stored in a directory named '.ebextensions' at the root of the application source bundle. Files within this directory must have a '.config' extension to be parsed and executed during deployment.

Adım Adım Çözüm

1
Identify the mechanism AWS Elastic Beanstalk uses for customization during deployment.
Elastic Beanstalk uses configuration files (ending in .config) to customize environment resources and software.
Understanding the built-in configuration mechanism of Elastic Beanstalk helps locate where configuration files must be stored.
2
Determine the required directory name and location requirements for these configuration files.
The files must be located in a folder named '.ebextensions' (with a leading dot) situated precisely at the root of the application source bundle.
Elastic Beanstalk's deployment agent scans only the root-level '.ebextensions' folder for files ending in '.config'.

Anahtar Kavram

AWS Elastic Beanstalk configuration files (.ebextensions) structure
Tahmini Süre:1m 30s
Bu soruyu puanla