pull/235/head
mdugdale 2021-04-03 14:03:30 +01:00
parent 0f0e8c8f5a
commit 9aae530430
3 changed files with 15 additions and 15 deletions

14
dist/index.js vendored
View File

@ -483,11 +483,11 @@ class AWS {
],
}).promise();
core.info('Creating build cluster...');
const taskDefStackNameTTL = `${taskDefStackName}-cleanup`;
const ttlCloudFormation = fs.readFileSync(`${__dirname}/cloudformation-stack-ttl.yml`, 'utf8');
const cleanupTaskDefStackName = `${taskDefStackName}-cleanup`;
const cleanupCloudFormation = fs.readFileSync(`${__dirname}/cloudformation-stack-ttl.yml`, 'utf8');
yield CF.createStack({
StackName: taskDefStackNameTTL,
TemplateBody: ttlCloudFormation,
StackName: cleanupTaskDefStackName,
TemplateBody: cleanupCloudFormation,
Capabilities: ['CAPABILITY_IAM'],
Parameters: [
{
@ -496,7 +496,7 @@ class AWS {
},
{
ParameterKey: 'DeleteStackName',
ParameterValue: taskDefStackNameTTL,
ParameterValue: cleanupTaskDefStackName,
},
{
ParameterKey: 'TTL',
@ -523,8 +523,8 @@ class AWS {
return {
taskDefStackName,
taskDefCloudFormation,
taskDefStackNameTTL,
ttlCloudFormation,
taskDefStackNameTTL: cleanupTaskDefStackName,
ttlCloudFormation: cleanupCloudFormation,
taskDefResources,
baseResources,
};

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -338,11 +338,11 @@ class AWS {
}).promise();
core.info('Creating build cluster...');
const taskDefStackNameTTL = `${taskDefStackName}-cleanup`;
const ttlCloudFormation = fs.readFileSync(`${__dirname}/cloudformation-stack-ttl.yml`, 'utf8');
const cleanupTaskDefStackName = `${taskDefStackName}-cleanup`;
const cleanupCloudFormation = fs.readFileSync(`${__dirname}/cloudformation-stack-ttl.yml`, 'utf8');
await CF.createStack({
StackName: taskDefStackNameTTL,
TemplateBody: ttlCloudFormation,
StackName: cleanupTaskDefStackName,
TemplateBody: cleanupCloudFormation,
Capabilities: ['CAPABILITY_IAM'],
Parameters: [
{
@ -351,7 +351,7 @@ class AWS {
},
{
ParameterKey: 'DeleteStackName',
ParameterValue: taskDefStackNameTTL,
ParameterValue: cleanupTaskDefStackName,
},
{
ParameterKey: 'TTL',
@ -381,8 +381,8 @@ class AWS {
return {
taskDefStackName,
taskDefCloudFormation,
taskDefStackNameTTL,
ttlCloudFormation,
taskDefStackNameTTL: cleanupTaskDefStackName,
ttlCloudFormation: cleanupCloudFormation,
taskDefResources,
baseResources,
};