Sha256: 7046bb466ebfeaa119e4fe10c70481c776a89fe4983d91ff25ff2a98206e2e97

Contents?: true

Size: 448 Bytes

Versions: 41

Compression:

Stored size: 448 Bytes

Contents

module Jets::Stack::Main::Dsl
  module Sqs
    def sqs_queue(id, props={})
      # props[:queue_name] ||= id.to_s # comment out to allow CloudFormation to generate name
      resource(id, "AWS::SQS::Queue", props)
      output(id, getatt(id, :arn)) # normal !Ref returns the sqs url the ARN is useful for nested stacks depends_on
      output("#{id}_url", ref(id)) # useful for Stack.lookup method. IE: List.lookup(:waitlist_url)
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
jets-2.0.3 lib/jets/stack/main/dsl/sqs.rb
jets-2.0.1 lib/jets/stack/main/dsl/sqs.rb
jets-2.0.0 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.32 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.31 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.30 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.29 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.28 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.27 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.26 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.25 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.24 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.23 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.22 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.21 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.20 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.19 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.18 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.17 lib/jets/stack/main/dsl/sqs.rb
jets-1.9.16 lib/jets/stack/main/dsl/sqs.rb