Class: AwsHelpers::CloudFormation::StackParameters

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

Instance Method Summary collapse

Constructor Details

#initialize(cloud_formation_client, stack_name) ⇒ StackParameters

Returns a new instance of StackParameters


7
8
9
# File 'lib/aws_helpers/cloud_formation/stack_parameters.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_parameters.rb', line 11

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