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
resource "aws_elastic_beanstalk_application" "tf_app_test" {
name = "tf-test-name"
description = "tf-test-desc"
}
resource "aws_elastic_beanstalk_configuration_template" "tf_template" {
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"]
}
resource "aws_elastic_beanstalk_application" "docker-app" {
name = "docker3"
}
resource "aws_elastic_beanstalk_environment" "docker-env" {
name = "Docker-env3"
Parameters
-
arnoptional computed - string -
descriptionoptional - string -
idoptional computed - string -
namerequired - string -
tagsoptional - map from string to string -
appversion_lifecyclelist block-
delete_source_from_s3optional - bool -
max_age_in_daysoptional - number -
max_countoptional - number -
service_rolerequired - string
-
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
-
ApplicationNameoptional - String -
Descriptionoptional - String -
ResourceLifecycleConfigoptional - ApplicationResourceLifecycleConfig
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.