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.3.1 lib/jets/stack/main/dsl/sqs.rb
jets-2.3.0 lib/jets/stack/main/dsl/sqs.rb
jets-2.2.5 lib/jets/stack/main/dsl/sqs.rb
jets-2.2.4 lib/jets/stack/main/dsl/sqs.rb
jets-2.2.3 lib/jets/stack/main/dsl/sqs.rb
jets-2.2.2 lib/jets/stack/main/dsl/sqs.rb
jets-2.2.1 lib/jets/stack/main/dsl/sqs.rb
jets-2.2.0 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.7 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.6 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.5 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.4 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.3 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.2 lib/jets/stack/main/dsl/sqs.rb
jets_bb_fork-0.0.4 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.1 lib/jets/stack/main/dsl/sqs.rb
jets-2.1.0 lib/jets/stack/main/dsl/sqs.rb
jets-2.0.6 lib/jets/stack/main/dsl/sqs.rb
jets-2.0.5 lib/jets/stack/main/dsl/sqs.rb
jets-2.0.4 lib/jets/stack/main/dsl/sqs.rb