Log non resource blocking errors

pull/263/head
Frostebite 2021-05-22 19:32:23 +00:00 committed by GitHub
parent bb7553d711
commit a6d3837ba2
3 changed files with 498 additions and 498 deletions

988
dist/index.js vendored

File diff suppressed because it is too large Load Diff

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,7 @@ class AWSBuildEnvironment {
return ` return `
${p1}Secret: ${p1}Secret:
Type: AWS::SecretsManager::Secret Type: AWS::SecretsManager::Secret
Properties: Properties:
Name: !Join [ "", [ '${p1}', !Ref BUILDID ] ] Name: !Join [ "", [ '${p1}', !Ref BUILDID ] ]
SecretString: !Ref ${p1} SecretString: !Ref ${p1}
`; `;
@ -210,10 +210,10 @@ class AWSBuildEnvironment {
taskDefCloudFormation: string, taskDefCloudFormation: string,
secrets: RemoteBuilderSecret[], secrets: RemoteBuilderSecret[],
) { ) {
const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
const resources = (await CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources;
core.info(JSON.stringify(secrets, undefined, 4)); core.info(JSON.stringify(secrets, undefined, 4));
core.info(taskDefCloudFormation); core.info(taskDefCloudFormation);
const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
const resources = (await CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources;
core.info(JSON.stringify(events, undefined, 4)); core.info(JSON.stringify(events, undefined, 4));
core.info(JSON.stringify(resources, undefined, 4)); core.info(JSON.stringify(resources, undefined, 4));
core.error(error); core.error(error);