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

main.tf#L9
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"
elastic_beanstalk.tf#L5
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 {
elastic_beanstalk.tf#L4
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 {

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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, or production.

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

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.