A developer is preparing a deployment package for a Python application to be deployed on AWS Elastic Beanstalk. The application requires a Linux system package to be installed on the hosting EC2 instances during deployment, and a custom database connection string environment variable to be configured. Which two configurations should the developer include in the application source bundle to meet these requirements?
- Create a folder named `.ebextensions` at the root of the source bundle and place a file ending with `.config` inside it to define the required Linux package.Cevap
- Define the database connection string environment variable under the `aws:elasticbeanstalk:application:environment` namespace in a `.config` file within the `.ebextensions` folder.Cevap
- CCreate a folder named `ebextensions` (without a leading period) at the root of the source bundle and place the configuration files there.
- DCreate a folder named `.elasticbeanstalk` at the root of the source bundle and place the configuration files there.
- ECreate an `appspec.yml` file at the root of the source bundle and define the package installation and environment variables under the lifecycle hooks.
Cevap
Create a folder named `.ebextensions` at the root of the source bundle and place a file ending with `.config` inside it to define the required Linux package; and define the database connection string environment variable under the `aws:elasticbeanstalk:application:environment` namespace in a `.config` file within the `.ebextensions` folder.
The correct configurations involve creating a `.ebextensions` folder at the root of the source bundle containing `.config` files. System packages are installed using the `packages` key, and environment variables are set using the `aws:elasticbeanstalk:application:environment` namespace within these files.
Adım Adım Çözüm
Anahtar Kavram
AWS Elastic Beanstalk environment customization using .ebextensions configuration files