awscc_elasticbeanstalk_environment (Resource)

Resource Type definition for AWS::ElasticBeanstalk::Environment

Example Usage

Basic usage with Python platform

In this example, we are going to create an AWS Elastic Beanstalk environment using Python platform. Please refer to Python platform history and use the current platform version and solution stack name. Also, please replace example-aws-elasticbeanstalk-ec2-role with your existing instance profile.

resource "awscc_elasticbeanstalk_application" "example-app" {
  application_name = "example-app"
  description      = "example-app"
}

resource "awscc_elasticbeanstalk_environment" "example-env" {
  application_name    = awscc_elasticbeanstalk_application.example-app.application_name
  solution_stack_name = "64bit Amazon Linux 2023 v4.0.3 running Python 3.11"
  option_settings = [{
    namespace   = "aws:autoscaling:launchconfiguration"
    option_name = "IamInstanceProfile"
    value       = "example-aws-elasticbeanstalk-ec2-role"
  }]
  tags = [{
    key   = "Managed By"
    value = "AWSCC"
  }]
}

Schema

Required

Optional

Read-Only

Nested Schema for option_settings

Required:

Optional:

Nested Schema for tags

Required:

Nested Schema for tier

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_elasticbeanstalk_environment.example <resource ID>