Skip to content

Commit

Permalink
Merge pull request #27 from toluna-terraform/fix_tf_address
Browse files Browse the repository at this point in the history
fix SAM environment name parsing
  • Loading branch information
Eli-Meitner authored Dec 15, 2022
2 parents 870e784 + 7c0b86d commit d9c4277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified modules/test-framework-manager/lambda/lambda.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ async function getDeploymentDetails() {
}
if (platform === "Lambda") {
deploymentType = "SAM"
environment = data.deploymentInfo.applicationName.split('-')[2];
environment = data.deploymentInfo.applicationName.replace(`serverlessrepo-${process.env.APP_NAME}-`,'');
environment = environment.split('-')[0];
resolve({ "lb_env_name": `${environment}.${process.env.APP_NAME}`, "environment": environment, "deploy_type": deploymentType });
}
}// successful response
Expand Down

0 comments on commit d9c4277

Please sign in to comment.