Skip to content

Commit

Permalink
Merge pull request #326 from biomage-org/improved-region
Browse files Browse the repository at this point in the history
Using a whole-file default value for region
  • Loading branch information
alexvpickering authored Aug 19, 2023
2 parents 40b49b9 + 6492db7 commit e4e39eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion local-runner/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const DockerEvents = require('docker-events');
const { pt } = require('prepend-transform');
const chalk = require('chalk');

// set default values for the AWS region because otherwise setVarsInTemplate function
// will silently fail
process.env.AWS_DEFAULT_REGION = process.env.AWS_DEFAULT_REGION || 'eu-west-1';

// Enable & connect to local Inframock.
AWS.config.update({
endpoint: 'http://localhost:4566',
Expand Down Expand Up @@ -33,7 +37,7 @@ const initStack = async () => {

console.log('Creating mock Lambda function on InfraMock...');
const cf = new AWS.CloudFormation({
region: process.env.AWS_DEFAULT_REGION || 'eu-west-1',
region: process.env.AWS_DEFAULT_REGION,
});

const stackName = {
Expand Down

0 comments on commit e4e39eb

Please sign in to comment.