AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

AWS::ElasticBeanstalk::Application

Creates an AWS Elastic Beanstalk application.

Syntax

{
   "Type" : "AWS::ElasticBeanstalk::Application",
   "Properties" : {
      "ApplicationVersions" : [ ApplicationVersion, ... ],
      "ConfigurationTemplates" : [ ConfigurationTemplate, ... ]
      "Description" : String,
   }
}      

Properties

ApplicationVersions

Application versions associated with this application. An application version is a specific, labeled iteration of deployable code.

Required: Yes.

Type: A list of ApplicationVersions.

ConfigurationTemplates

Configuration templates associated with this application. You can use templates to deploy different versions of an application using the configuration settings defined in the template.

Required: No.

Type: A list of ConfigurationTemplates.

Description

An optional description of this application.

Required: No.

Type: String.

Return Values

Ref

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

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

Example

{
   "Type" : "AWS::ElasticBeanstalk::Application",
   "Properties" : {
      "Description" : "AWS Elastic Beanstalk PHP Sample Application",
      "ApplicationVersions" : [ {
         "VersionLabel" : "Initial Version",
         "Description" : "Version 1.0",
         "SourceBundle" : {
            "S3Bucket" : { "Fn::Join" :
               ["-", [ "elasticbeanstalk-samples", { "Ref" : "AWS::Region" } ] ] },
            "S3Key" : "php-sample.zip"
         }
      } ],
      "ConfigurationTemplates" : [ {
         "TemplateName" : "DefaultConfiguration",
         "Description" : "Default Configuration Version 1.0 - with SSH access",
         "SolutionStackName" : "64bit Amazon Linux running PHP 5.3",
         "OptionSettings" : [ {
            "Namespace" : "aws:autoscaling:launchconfiguration",
            "OptionName" : "EC2KeyName",
            "Value" : { "Ref" : "KeyName" }
         } ]
      } ]
   }
}