Sha256: 5323df73533647896ae333261df338420759c1428deb290b886460538d3fe2bd

Contents?: true

Size: 795 Bytes

Versions: 24

Compression:

Stored size: 795 Bytes

Contents

CloudFormation {
  AWSTemplateFormatVersion "2010-09-09"

  Description "Circular Reference"

  Parameter("InstanceType") {
      Description "Type of EC2 instance to launch"
      Type "String"
      Default "m1.small"
  }

  Resource("WebServerGroup") {
    Type "AWS::AutoScaling::AutoScalingGroup"
    Property("AvailabilityZones", FnGetAZs("") )
    Property("LaunchConfigurationName", Ref( "LaunchConfig") )
    Property("MinSize", "1")
    Property("MaxSize", "3")
  }


  Resource( "LaunchConfig" ) {
    Type "AWS::AutoScaling::LaunchConfiguration"
    DependsOn ["WebServerGroup"]
    Property("InstanceType",   Ref("InstanceType") )
  }


  Output( "URL" ) {
    Description "The URL of the website"
    Value FnJoin( "", [ "http://", FnGetAtt( "LaunchConfig", "DNSName" ) ] )
  }
}

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cfndsl-0.4.4 sample/circular.rb
cfndsl-0.4.3 sample/circular.rb
cfndsl-0.4.2 sample/circular.rb
cfndsl-0.4.1 sample/circular.rb
cfndsl-0.4.0 sample/circular.rb
cfndsl-0.3.6 sample/circular.rb
cfndsl-0.3.5 sample/circular.rb
cfndsl-0.3.4 sample/circular.rb
cfndsl-0.3.3 sample/circular.rb
cfndsl-0.3.2 sample/circular.rb
cfndsl-0.3.1 sample/circular.rb
cfndsl-0.2.9 sample/circular.rb
cfndsl-0.2.8 sample/circular.rb
cfndsl-0.3.0 sample/circular.rb
cfndsl-0.2.7 sample/circular.rb
cfndsl-0.2.4 sample/circular.rb
cfndsl-0.2.3 sample/circular.rb
cfndsl-0.2.2 sample/circular.rb
cfndsl-0.2.1 sample/circular.rb
cfndsl-0.2.0 sample/circular.rb