diff --git a/src/sc_runner/runner.py b/src/sc_runner/runner.py index 0a82f81..2877415 100644 --- a/src/sc_runner/runner.py +++ b/src/sc_runner/runner.py @@ -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) \ No newline at end of file