Skip to content

Commit

Permalink
cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed May 31, 2024
1 parent 4399440 commit 1ffc21e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sc_runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,14 @@ def pulumi_program():

stack = pulumi_stack(pulumi_program, **pulumi_opts)
stack.up(on_output=print)


def cancel(vendor, pulumi_opts, resource_opts):
resource_f = getattr(resources, f"{resources.PREFIX}{vendor}")
pulumi_opts["stack_name"] = get_stack_name(vendor, resource_f, resource_opts)

def pulumi_program():
return lambda: None

stack = pulumi_stack(pulumi_program, **pulumi_opts)
stack.cancel()

0 comments on commit 1ffc21e

Please sign in to comment.