Module: Jets::Stack::Main::Dsl::Sqs
- Defined in:
- lib/jets/stack/main/dsl/sqs.rb
Instance Method Summary collapse
Instance Method Details
#sqs_queue(id, props = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/jets/stack/main/dsl/sqs.rb', line 3 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 |