AWS Elastic Beanstalk Environment
This page shows how to write Terraform and CloudFormation for Elastic Beanstalk Environment and write them securely.
aws_elastic_beanstalk_environment (Terraform)
The Environment in Elastic Beanstalk can be configured in Terraform with the resource name aws_elastic_beanstalk_environment. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_elastic_beanstalk_environment" "docker-env" {
name = "Docker-env3"
application = aws_elastic_beanstalk_application.docker-app.name
solution_stack_name = "64bit Amazon Linux 2 v3.4.3 running Docker"
setting {
namespace = "aws:autoscaling:launchconfiguration"
resource "aws_elastic_beanstalk_environment" "environment" {
name = "my-awesome-environment"
application = aws_elastic_beanstalk_application.application.name
solution_stack_name = "64bit Amazon Linux 2 v3.0.3 running Python 3.7"
setting {
resource "aws_elastic_beanstalk_environment" "environment" {
name = "php-hello-world-environment"
application = aws_elastic_beanstalk_application.application.name
solution_stack_name = "64bit Amazon Linux 2 v3.1.2 running PHP 7.3"
setting {
Parameters
-
all_settingsoptional computed - set of object -
applicationrequired - string -
arnoptional computed - string -
autoscaling_groupsoptional computed - list of string -
cnameoptional computed - string -
cname_prefixoptional computed - string -
descriptionoptional - string -
endpoint_urloptional computed - string -
idoptional computed - string -
instancesoptional computed - list of string -
launch_configurationsoptional computed - list of string -
load_balancersoptional computed - list of string -
namerequired - string -
platform_arnoptional computed - string -
poll_intervaloptional - string -
queuesoptional computed - list of string -
solution_stack_nameoptional computed - string -
tagsoptional - map from string to string -
template_nameoptional - string -
tieroptional - string -
triggersoptional computed - list of string -
version_labeloptional computed - string -
wait_for_ready_timeoutoptional - string -
settingset block
Explanation in Terraform Registry
Provides an Elastic Beanstalk Environment Resource. Elastic Beanstalk allows you to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications. Environments are often things such as
development,integration, orproduction.
AWS::ElasticBeanstalk::Environment (CloudFormation)
The Environment in ElasticBeanstalk can be configured in CloudFormation with the resource name AWS::ElasticBeanstalk::Environment. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
ApplicationNamerequired - String -
CNAMEPrefixoptional - String -
Descriptionoptional - String -
EnvironmentNameoptional - String -
OperationsRoleoptional - String -
OptionSettingsoptional - List of OptionSetting -
PlatformArnoptional - String -
SolutionStackNameoptional - String -
Tagsoptional - List of Tag -
TemplateNameoptional - String -
Tieroptional - Tier -
VersionLabeloptional - String
Explanation in CloudFormation Registry
The AWS::ElasticBeanstalk::Environment resource is an AWS Elastic Beanstalk resource type that specifies an Elastic Beanstalk environment.
Frequently asked questions
What is AWS Elastic Beanstalk Environment?
AWS Elastic Beanstalk Environment is a resource for Elastic Beanstalk of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Elastic Beanstalk Environment?
For Terraform, the ochernyavskyi/devops, seamless-io/blog-posts and JanisRancans/aws-beanstalk source code examples are useful. See the Terraform Example section for further details.