diff --git a/mage_helpers/cdk.go b/mage_helpers/cdk.go
index 11aef4a16bdb6889f81d0270d7571ce190c74ac7..1fac58530e6b1eba2f97caf759caaba82dd5f395 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)
 	}