BUILDID replaced by buildGuid in cloudformation

pull/310/head
Frostebite 2021-12-30 00:49:43 +00:00
parent 695a194524
commit 93a5475872
3 changed files with 10 additions and 3 deletions

5
dist/index.js vendored
View File

@ -962,11 +962,14 @@ const cloud_runner_logger_1 = __importDefault(__webpack_require__(22855));
const core = __importStar(__webpack_require__(42186));
class AWSError {
static handleStackCreationFailure(error, CF, taskDefStackName) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
cloud_runner_logger_1.default.log('aws error: ');
core.error(JSON.stringify(error, undefined, 4));
cloud_runner_logger_1.default.log('Getting events and resources for task stack');
const events = (yield CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
const events = (_a = (yield CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents) === null || _a === void 0 ? void 0 : _a.filter((x) => {
x.ResourceStatus === `CREATE_FAILED`;
});
const resources = (yield CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources;
cloud_runner_logger_1.default.log(JSON.stringify(events, undefined, 4));
cloud_runner_logger_1.default.log(JSON.stringify(resources, undefined, 4));

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,11 @@ export class AWSError {
CloudRunnerLogger.log('aws error: ');
core.error(JSON.stringify(error, undefined, 4));
CloudRunnerLogger.log('Getting events and resources for task stack');
const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents;
const events = (await CF.describeStackEvents({ StackName: taskDefStackName }).promise()).StackEvents?.filter(
(x) => {
x.ResourceStatus === `CREATE_FAILED`;
},
);
const resources = (await CF.describeStackResources({ StackName: taskDefStackName }).promise()).StackResources;
CloudRunnerLogger.log(JSON.stringify(events, undefined, 4));
CloudRunnerLogger.log(JSON.stringify(resources, undefined, 4));