log secrets we add (by name)
parent
2d86865cb6
commit
7e7c927e8f
|
|
@ -1228,6 +1228,7 @@ class AWS {
|
||||||
const taskDefStackName = `${stackName}-${buildUid}`;
|
const taskDefStackName = `${stackName}-${buildUid}`;
|
||||||
let taskDefCloudFormation = this.readTaskCloudFormationTemplate();
|
let taskDefCloudFormation = this.readTaskCloudFormationTemplate();
|
||||||
for (const secret of secrets) {
|
for (const secret of secrets) {
|
||||||
|
core.info(`adding secret ${secret.ParameterKey} : ${secret.EnvironmentVariable}`);
|
||||||
const insertionStringParameters = 'p1 - input';
|
const insertionStringParameters = 'p1 - input';
|
||||||
const insertionStringSecrets = 'p2 - secret';
|
const insertionStringSecrets = 'p2 - secret';
|
||||||
const insertionStringContainerSecrets = 'p3 - container def';
|
const insertionStringContainerSecrets = 'p3 - container def';
|
||||||
|
|
@ -1267,10 +1268,10 @@ class AWS {
|
||||||
taskDefCloudFormation.slice(indexp3),
|
taskDefCloudFormation.slice(indexp3),
|
||||||
].join('');
|
].join('');
|
||||||
}
|
}
|
||||||
|
core.info(taskDefCloudFormation);
|
||||||
const mappedSecrets = secrets.map((x) => {
|
const mappedSecrets = secrets.map((x) => {
|
||||||
return { ParameterKey: x.ParameterKey.replace(/[^\dA-Za-z]/g, ''), ParameterValue: x.ParameterValue };
|
return { ParameterKey: x.ParameterKey.replace(/[^\dA-Za-z]/g, ''), ParameterValue: x.ParameterValue };
|
||||||
});
|
});
|
||||||
core.info(taskDefCloudFormation);
|
|
||||||
yield CF.createStack({
|
yield CF.createStack({
|
||||||
StackName: taskDefStackName,
|
StackName: taskDefStackName,
|
||||||
TemplateBody: taskDefCloudFormation,
|
TemplateBody: taskDefCloudFormation,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -58,6 +58,7 @@ class AWS {
|
||||||
const taskDefStackName = `${stackName}-${buildUid}`;
|
const taskDefStackName = `${stackName}-${buildUid}`;
|
||||||
let taskDefCloudFormation = this.readTaskCloudFormationTemplate();
|
let taskDefCloudFormation = this.readTaskCloudFormationTemplate();
|
||||||
for (const secret of secrets) {
|
for (const secret of secrets) {
|
||||||
|
core.info(`adding secret ${secret.ParameterKey} : ${secret.EnvironmentVariable}`);
|
||||||
const insertionStringParameters = 'p1 - input';
|
const insertionStringParameters = 'p1 - input';
|
||||||
const insertionStringSecrets = 'p2 - secret';
|
const insertionStringSecrets = 'p2 - secret';
|
||||||
const insertionStringContainerSecrets = 'p3 - container def';
|
const insertionStringContainerSecrets = 'p3 - container def';
|
||||||
|
|
@ -102,10 +103,10 @@ class AWS {
|
||||||
taskDefCloudFormation.slice(indexp3),
|
taskDefCloudFormation.slice(indexp3),
|
||||||
].join('');
|
].join('');
|
||||||
}
|
}
|
||||||
|
core.info(taskDefCloudFormation);
|
||||||
const mappedSecrets = secrets.map((x) => {
|
const mappedSecrets = secrets.map((x) => {
|
||||||
return { ParameterKey: x.ParameterKey.replace(/[^\dA-Za-z]/g, ''), ParameterValue: x.ParameterValue };
|
return { ParameterKey: x.ParameterKey.replace(/[^\dA-Za-z]/g, ''), ParameterValue: x.ParameterValue };
|
||||||
});
|
});
|
||||||
core.info(taskDefCloudFormation);
|
|
||||||
await CF.createStack({
|
await CF.createStack({
|
||||||
StackName: taskDefStackName,
|
StackName: taskDefStackName,
|
||||||
TemplateBody: taskDefCloudFormation,
|
TemplateBody: taskDefCloudFormation,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue