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