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_settings
optional computed - set of object -
application
required - string -
arn
optional computed - string -
autoscaling_groups
optional computed - list of string -
cname
optional computed - string -
cname_prefix
optional computed - string -
description
optional - string -
endpoint_url
optional computed - string -
id
optional computed - string -
instances
optional computed - list of string -
launch_configurations
optional computed - list of string -
load_balancers
optional computed - list of string -
name
required - string -
platform_arn
optional computed - string -
poll_interval
optional - string -
queues
optional computed - list of string -
solution_stack_name
optional computed - string -
tags
optional - map from string to string -
template_name
optional - string -
tier
optional - string -
triggers
optional computed - list of string -
version_label
optional computed - string -
wait_for_ready_timeout
optional - string -
setting
set 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
-
ApplicationName
required - String -
CNAMEPrefix
optional - String -
Description
optional - String -
EnvironmentName
optional - String -
OperationsRole
optional - String -
OptionSettings
optional - List of OptionSetting -
PlatformArn
optional - String -
SolutionStackName
optional - String -
Tags
optional - List of Tag -
TemplateName
optional - String -
Tier
optional - Tier -
VersionLabel
optional - 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.