Sha256: 2604cfdbf74850731a9e24a009fedb90f6a31f9ef6bbc3aec73e3b581fdfd7f9

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 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, Value: get_att("#{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

6 entries across 6 versions & 1 rubygems

Version Path
jets-5.0.4 lib/jets/stack/main/dsl/sqs.rb
jets-5.0.3 lib/jets/stack/main/dsl/sqs.rb
jets-5.0.2 lib/jets/stack/main/dsl/sqs.rb
jets-5.0.1 lib/jets/stack/main/dsl/sqs.rb
jets-5.0.0 lib/jets/stack/main/dsl/sqs.rb
jets-5.0.0.beta1 lib/jets/stack/main/dsl/sqs.rb