Provides an Elastic Beanstalk Application Version 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 a Beanstalk Application Version that can be deployed to a Beanstalk Environment.
resource "aws_s3_bucket" "default" {
bucket = "tftest.applicationversion.bucket"
}
resource "aws_s3_object" "default" {
bucket = aws_s3_bucket.default.id
key = "beanstalk/go-v1.zip"
source = "go-v1.zip"
}
resource "aws_elastic_beanstalk_application" "default" {
name = "tf-test-name"
description = "tf-test-desc"
}
resource "aws_elastic_beanstalk_application_version" "default" {
name = "tf-test-version-label"
application = "tf-test-name"
description = "application version created by terraform"
bucket = aws_s3_bucket.default.id
key = aws_s3_object.default.id
}
The following arguments are required:
application
- (Required) Name of the Beanstalk Application the version is associated with.bucket
- (Required) S3 bucket that contains the Application Version source bundle.key
- (Required) S3 object that is the Application Version source bundle.name
- (Required) Unique name for the this Application Version.The following arguments are optional:
description
- (Optional) Short description of the Application Version.force_delete
- (Optional) On delete, force an Application Version to be deleted when it may be in use by multiple Elastic Beanstalk Environments.tags
- (Optional) Key-value map of tags for the Elastic Beanstalk Application Version. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- ARN assigned by AWS for this Elastic Beanstalk Application.tags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.