AWS Elastic Beanstalk Application

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

aws_elastic_beanstalk_application (Terraform)

The Application in Elastic Beanstalk can be configured in Terraform with the resource name aws_elastic_beanstalk_application. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

beanstalk_application.tf#L3
resource "aws_elastic_beanstalk_application" "tf_app_test" {
  name        = "tf-test-name"
  description = "tf-test-desc"
}

resource "aws_elastic_beanstalk_configuration_template" "tf_template" {
beanstalk_applications.tf#L7
resource "aws_elastic_beanstalk_application" "default" {
  count = length(var.aws_beanstalk_apps)

  name        = var.aws_beanstalk_apps[count.index]["name"]
  description = var.aws_beanstalk_apps[count.index]["description"]
}
main.tf#L5
resource "aws_elastic_beanstalk_application" "docker-app" {
  name        = "docker3"
}

resource "aws_elastic_beanstalk_environment" "docker-env" {
  name                = "Docker-env3"

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 Application Resource. Elastic Beanstalk allows you to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications. This resource creates an application that has one configuration template named default, and no application versions

AWS::ElasticBeanstalk::Application (CloudFormation)

The Application in ElasticBeanstalk can be configured in CloudFormation with the resource name AWS::ElasticBeanstalk::Application. 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::Application resource is an AWS Elastic Beanstalk Beanstalk resource type that specifies an Elastic Beanstalk application.

Frequently asked questions

What is AWS Elastic Beanstalk Application?

AWS Elastic Beanstalk Application 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 Application?

For Terraform, the fredsilvas/terraform-aws-beanstalk, zimosworld/beanstalk-single-php-container and ochernyavskyi/devops source code examples are useful. See the Terraform Example section for further details.