Class: Pipedream::Update

Inherits:
Stack
  • Object
show all
Defined in:
lib/pipedream/update.rb

Instance Method Summary collapse

Methods inherited from Stack

#initialize, #run

Methods included from AwsServices

#cfn, #codepipeline, #s3

Methods included from AwsServices::Helpers

#are_you_sure?, #inferred_pipeline_name, #inferred_stack_name, #pipeline_name_convention, #stack_exists?

Constructor Details

This class inherits a constructor from Pipedream::Stack

Instance Method Details

#performObject



3
4
5
6
7
8
9
10
# File 'lib/pipedream/update.rb', line 3

def perform
  cfn.update_stack(
    stack_name: @stack_name,
    template_body: YAML.dump(@template),
    capabilities: ["CAPABILITY_IAM"]
  )
  puts "Updating stack #{@stack_name}. Check CloudFormation console for status."
end