AWS::ElasticBeanstalk::ApplicationVersion - AWS CloudFormation

AWS::ElasticBeanstalk::ApplicationVersion

The AWS::ElasticBeanstalk::ApplicationVersion resource is an AWS Elastic Beanstalk resource type that specifies an application version, an iteration of deployable code, for an Elastic Beanstalk application.

Note

After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 location, an attempt to launch an environment from the application version will fail.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::ElasticBeanstalk::ApplicationVersion", "Properties" : { "ApplicationName" : String, "Description" : String, "SourceBundle" : SourceBundle } }

YAML

Type: AWS::ElasticBeanstalk::ApplicationVersion Properties: ApplicationName: String Description: String SourceBundle: SourceBundle

Properties

ApplicationName

The name of the Elastic Beanstalk application that is associated with this application version.

Required: Yes

Type: String

Minimum: 1

Maximum: 100

Update requires: Replacement

Description

A description of this application version.

Required: No

Type: String

Maximum: 200

Update requires: No interruption

SourceBundle

The Amazon S3 bucket and key that identify the location of the source bundle for this version.

Note

The Amazon S3 bucket must be in the same region as the environment.

Required: Yes

Type: SourceBundle

Update requires: Replacement

Return values

Ref

When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the resource name.

For more information about using the Ref function, see Ref.

Fn::GetAtt

Examples

JSON

"myAppVersion": { "Type" : "AWS::ElasticBeanstalk::ApplicationVersion", "Properties" : { "ApplicationName" : {"Ref" : "myApp"}, "Description" : "my sample version", "SourceBundle" : { "S3Bucket" : { "Fn::Join" : ["-", [ "elasticbeanstalk-samples", { "Ref" : "AWS::Region" } ] ] }, "S3Key" : "php-newsample-app.zip" } } }

YAML

myAppVersion: Type: AWS::ElasticBeanstalk::ApplicationVersion Properties: ApplicationName: Ref: "myApp" Description: "my sample version" SourceBundle: S3Bucket: Fn::Join: - "-" - - "elasticbeanstalk-samples" - Ref: "AWS::Region" S3Key: "php-newsample-app.zip"

See also