Skip to content

Commit c61ada3

Browse files
Merge pull request goadapp#92 from zeph/multi_region_aws_bug
BUG! preventing multiregion to work
2 parents abf1234 + cbe2ce3 commit c61ada3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

goad.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (t *Test) invokeLambdas(awsConfig *aws.Config, sqsURL string) {
142142
Args: args,
143143
}
144144

145-
config := awsConfig.WithRegion(region)
145+
config := aws.NewConfig().WithRegion(region)
146146
go t.invokeLambda(config, invokeargs)
147147
}
148148
}

infrastructure/infrastructure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (infra *Infrastructure) setup() error {
6565
}
6666

6767
func (infra *Infrastructure) createOrUpdateLambdaFunction(region, roleArn string, payload []byte) error {
68-
config := infra.config.WithRegion(region)
68+
config := aws.NewConfig().WithRegion(region)
6969
svc := lambda.New(session.New(), config)
7070

7171
exists, err := lambdaExists(svc)

0 commit comments

Comments
 (0)