AWS Elastic Beanstalk Environment

This page shows how to write Terraform and CloudFormation for Elastic Beanstalk Environment and write them securely.


Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.


Terraform Example (aws_elastic_beanstalk_environment)

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.


Example Usage (from GitHub)

resource "aws_elastic_beanstalk_environment" "docker-env" {
  name                = "Docker-env3"
  application         =
  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         =
  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         =
  solution_stack_name = "64bit Amazon Linux 2 v3.1.2 running PHP 7.3"

  setting {

CloudFormation Example (AWS::ElasticBeanstalk::Environment)

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.