AWS::ElasticBeanstalk::ApplicationVersion
Creates an application version, an iteration of deployable code, for an Elastic Beanstalk application.
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:StringDescription:StringSourceBundle:SourceBundle
Members
ApplicationName-
Name of the Elastic Beanstalk application that is associated with this application version.
Required: Yes
Type: String
Update requires: Replacement
Description-
A description of this application version.
Required: No
Type: String
Update requires: Some interruptions
SourceBundle-
The location of the source bundle for this version.
Required: Yes
Type: Source Bundle
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.
Example
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
-
For a complete Elastic Beanstalk sample template, see Elastic Beanstalk Template Snippets.
