Using region from aws configuration

pull/218/head
Frostebite 2021-02-05 23:38:13 +00:00
parent 5bf4de18ce
commit 4bdad18f86
2 changed files with 2 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

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