Sha256: e858672a110513cd4f9c671eff6b3942a77f5c9cba1ddd6e8364ada5f6b5399a

Contents?: true

Size: 785 Bytes

Versions: 66

Compression:

Stored size: 785 Bytes

Contents

CloudFormation do
  AWSTemplateFormatVersion '2010-09-09'

  Description 'Circular Reference'

  Parameter('InstanceType') do
    Description 'Type of EC2 instance to launch'
    Type 'String'
    Default 'm1.small'
  end

  Resource('WebServerGroup') do
    Type 'AWS::AutoScaling::AutoScalingGroup'
    Property('AvailabilityZones', FnGetAZs(''))
    Property('LaunchConfigurationName', Ref('LaunchConfig'))
    Property('MinSize', '1')
    Property('MaxSize', '3')
  end

  Resource('LaunchConfig') do
    Type 'AWS::AutoScaling::LaunchConfiguration'
    DependsOn ['WebServerGroup']
    Property('InstanceType', Ref('InstanceType'))
  end

  Output('URL') do
    Description 'The URL of the website'
    Value FnJoin('', ['http://', FnGetAtt('LaunchConfig', 'DNSName')])
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
cfndsl-0.16.13 sample/circular.rb
cfndsl-0.16.12 sample/circular.rb
cfndsl-0.16.11 sample/circular.rb
cfndsl-0.16.10 sample/circular.rb
cfndsl-0.16.9 sample/circular.rb
cfndsl-0.16.8 sample/circular.rb
cfndsl-0.16.7 sample/circular.rb
cfndsl-0.16.6 sample/circular.rb
cfndsl-0.16.5 sample/circular.rb
cfndsl-0.16.3 sample/circular.rb
cfndsl-0.16.2 sample/circular.rb
cfndsl-0.16.1 sample/circular.rb
cfndsl-0.15.3 sample/circular.rb
cfndsl-0.15.2 sample/circular.rb
cfndsl-0.15.1 sample/circular.rb
cfndsl-0.15.0 sample/circular.rb
cfndsl-0.14.0 sample/circular.rb
cfndsl-0.13.1 sample/circular.rb
cfndsl-0.13.0 sample/circular.rb
cfndsl-0.12.11 sample/circular.rb