Configuring stack region

pull/218/head
Frostebite 2021-02-05 23:31:10 +00:00
parent 06dac18b35
commit 8cf32b1638
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -124,9 +124,12 @@ class AWS {
core.info(`Build job is running, `);
const stackInstance = await CF.describeStackInstance({ StackSetName: stackName }).promise();
// watching logs
const source = new hose.Source({
LogGroup: baseResources.StackResources.find((x) => x.LogicalResourceId === 'LogGroup'),
aws: { region: stackInstance.StackInstance.Region },
});
source.on('logs', AWS.onlog);