insert secrets dynamically, expect uniqueness to fail

pull/263/head
Frostebite 2021-05-02 02:38:58 +01:00
parent b379560f74
commit 5b8b8d8334
3 changed files with 7 additions and 5 deletions

3
dist/index.js vendored
View File

@ -509,7 +509,8 @@ class AWS {
const indexp3 = taskDefCloudFormation.search(p3string) + p3string.length + '\n'.length;
const template3 = `
- Name: '${secret.ParameterKey.toUpperCase()}'
ValueFrom: !Ref ${secret.ParameterKey}Secret`;
ValueFrom: !Ref ${secret.ParameterKey}Secret
`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp3),
template3,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -364,7 +364,8 @@ class AWS {
const indexp3 = taskDefCloudFormation.search(p3string) + p3string.length + '\n'.length;
const template3 = `
- Name: '${secret.ParameterKey.toUpperCase()}'
ValueFrom: !Ref ${secret.ParameterKey}Secret`;
ValueFrom: !Ref ${secret.ParameterKey}Secret
`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexp3),
template3,