Using region from aws configuration
parent
5bf4de18ce
commit
4bdad18f86
File diff suppressed because one or more lines are too long
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue