From 55131f68eeca9a0401e7796624a80d09e0776b5d Mon Sep 17 00:00:00 2001 From: Johan de Klerk <johan@shiplogic.com> Date: Wed, 1 Mar 2023 13:07:00 +0200 Subject: [PATCH] Pass in stack name to CDKSynthDebug --- mage_helpers/cdk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mage_helpers/cdk.go b/mage_helpers/cdk.go index 11aef4a..1fac585 100644 --- a/mage_helpers/cdk.go +++ b/mage_helpers/cdk.go @@ -167,7 +167,7 @@ func CDKSynthAll(cdkDir string, env string, profile string, local bool) error { return nil } -func CDKSynthDebug(cdkDir string, env string, handler string, appName string, profile string) error { +func CDKSynthDebug(cdkDir string, env string, handler string, stackName string, profile string) error { // Check if sandbox environment is active and get the sandbox name from the config file sandboxFilePath := "cdk/sandbox/config.dev.sandbox.yaml" sandboxName := "" @@ -189,7 +189,7 @@ func CDKSynthDebug(cdkDir string, env string, handler string, appName string, pr var stack string if len(sandboxName) == 0 { - stack = fmt.Sprintf("%v-%v-core", appName, env) + stack = stackName } else { stack = fmt.Sprintf("sandbox-%v-%v-core", env, sandboxName) } -- GitLab