Skip to content

Data Source: awsElasticBeanstalkApplication

Retrieve information about an Elastic Beanstalk Application.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsElasticBeanstalkApplicationExample =
  new aws.dataAwsElasticBeanstalkApplication.DataAwsElasticBeanstalkApplication(
    this,
    "example",
    {
      name: "example",
    }
  );
new cdktf.TerraformOutput(this, "arn", {
  value: dataAwsElasticBeanstalkApplicationExample.arn,
});
new cdktf.TerraformOutput(this, "description", {
  value: dataAwsElasticBeanstalkApplicationExample.description,
});

Argument Reference

  • name - (Required) Name of the application

Attributes Reference

  • id - Name of the application
  • arn - ARN of the application.
  • description - Short description of the application

Application version lifecycle (appversionLifecycle) supports the nested attribute containing.

  • serviceRole - ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
  • maxCount - Maximum number of application versions to retain.
  • maxAgeInDays - Number of days to retain an application version.
  • deleteSourceFromS3 - Specifies whether delete a version's source bundle from S3 when the application version is deleted.