Skip to content

Commit

Permalink
add get_stack
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed May 31, 2024
1 parent 334fd37 commit ec18ba6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sc_runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ def cancel(vendor, pulumi_opts, resource_opts):

stack = pulumi_stack(lambda: None, **pulumi_opts)
stack.cancel()


def get_stack(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)

return pulumi_stack(lambda: None, **pulumi_opts)

0 comments on commit ec18ba6

Please sign in to comment.