Sha256: d11c817317eba23af6e1087a574d10b7b25284a72f5a132cd1c0ff7b9683b5ef

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 Bytes

Contents

#!/usr/bin/env ruby
require 'bundler/setup'
require 'cloudformation-ruby-dsl/cfntemplate'

tmpl = template do
  @stack_name = 'hello-bucket-example'

  parameter 'Label',
            :Description => 'The label to apply to the bucket.',
            :Type => 'String',
            :Default => 'cfnrdsl',
            :UsePreviousValue => true

  resource "HelloBucket",
            :Type => 'AWS::S3::Bucket',
            :Properties => {
              :BucketName => ref('Label')
            }
end

tmpl.exec!

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
cardtapp-cloudformation-ruby-dsl-0.0.1.pre.3 examples/simple_template.rb
cardtapp-cloudformation-ruby-dsl-0.0.1.pre.pre2 examples/simple_template.rb
cardtapp-cloudformation-ruby-dsl-0.0.1.pre.pre1 examples/simple_template.rb
cloudformation-ruby-dsl-1.5.0 examples/simple_template.rb
cloudformation-ruby-dsl-1.4.6 examples/simple_template.rb
cloudformation-ruby-dsl-1.4.5 examples/simple_template.rb