Class: AwsHelpers::CloudFormation::StackOutputs

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_helpers/cloud_formation/stack_outputs.rb

Instance Method Summary collapse

Constructor Details

#initialize(cloud_formation_client, stack_name) ⇒ StackOutputs

Returns a new instance of StackOutputs


7
8
9
# File 'lib/aws_helpers/cloud_formation/stack_outputs.rb', line 7

def initialize(cloud_formation_client, stack_name)
  @describe_stack = DescribeStack.new(cloud_formation_client, stack_name)
end

Instance Method Details

#executeObject


11
12
13
14
# File 'lib/aws_helpers/cloud_formation/stack_outputs.rb', line 11

def execute
  stack = @describe_stack.execute
  stack[:outputs].map { |output| output.to_h }
end