Skip to content
Snippets Groups Projects
Commit 55131f68 authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Pass in stack name to CDKSynthDebug

parent f133e9d9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment