Alphanumeric image name for stack name
parent
1531aecf68
commit
55d9b343b6
File diff suppressed because one or more lines are too long
|
|
@ -14,7 +14,8 @@ class AWS {
|
||||||
const ECS = new SDK.ECS();
|
const ECS = new SDK.ECS();
|
||||||
const CF = new SDK.CloudFormation();
|
const CF = new SDK.CloudFormation();
|
||||||
|
|
||||||
const taskDefStackName = `${stackName}-taskDef-${image}`;
|
const alphanumericImageName = image.toString().replace(/[^0-9a-z]/gi, '');
|
||||||
|
const taskDefStackName = `${stackName}-taskDef-${alphanumericImageName}`;
|
||||||
const stackExists =
|
const stackExists =
|
||||||
(await CF.listStacks().promise()).StackSummaries.find(
|
(await CF.listStacks().promise()).StackSummaries.find(
|
||||||
(x) => x.StackName === taskDefStackName,
|
(x) => x.StackName === taskDefStackName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue