Resource: aws_elastic_beanstalk_application

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

Example Usage

resource "aws_elastic_beanstalk_application" "tftest" {
  name        = "tf-test-name"
  description = "tf-test-desc"

  appversion_lifecycle {
    service_role          = aws_iam_role.beanstalk_service.arn
    max_count             = 128
    delete_source_from_s3 = true
  }
}

Argument Reference

This resource supports the following arguments:

Application version lifecycle (appversion_lifecycle) supports the following settings. Only one of either max_count or max_age_in_days can be provided:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Elastic Beanstalk Applications using the name. For example:

import {
  to = aws_elastic_beanstalk_application.tf_test
  id = "tf-test-name"
}

Using terraform import, import Elastic Beanstalk Applications using the name. For example:

% terraform import aws_elastic_beanstalk_application.tf_test tf-test-name