Module: Lono::Template::Strategy::Dsl::Builder::Helpers::LookupHelper
- Extended by:
- Memoist
- Includes:
- AwsServices
- Included in:
- Lono::Template::Strategy::Dsl::Builder::Helpers
- Defined in:
- lib/lono/template/strategy/dsl/builder/helpers/lookup_helper.rb
Instance Method Summary collapse
Methods included from AwsServices
#cfn, #ec2, #iam, #s3, #s3_presigner, #s3_resource, #sts
Methods included from AwsServices::Helper
#rollback_complete?, #testing_update?
Methods included from AwsServices::StackSet
#find_stack_set, #stack_set_exists?
Methods included from AwsServices::Stack
Instance Method Details
#lookup_output(name) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lono/template/strategy/dsl/builder/helpers/lookup_helper.rb', line 6 def lookup_output(name) stack_name, key = name.split(".") resp = describe_stacks(stack_name: stack_name) stack = resp.stacks.first if stack o = stack.outputs.detect { |h| h.output_key == key } end if o o.output_value else "NOT FOUND: Did not lookup_output #{name} for stack #{stack}" end end |