diff --git a/goad.go b/goad.go index 605a0a9d..04dcf81f 100644 --- a/goad.go +++ b/goad.go @@ -139,7 +139,7 @@ func (t *Test) invokeLambdas(awsConfig *aws.Config, sqsURL string) { Args: args, } - config := aws.NewConfig().WithRegion(region) + config := awsConfig.WithRegion(region) go t.invokeLambda(config, invokeargs) } } diff --git a/infrastructure/infrastructure.go b/infrastructure/infrastructure.go index e08843fd..e056b5d3 100644 --- a/infrastructure/infrastructure.go +++ b/infrastructure/infrastructure.go @@ -65,7 +65,7 @@ func (infra *Infrastructure) setup() error { } func (infra *Infrastructure) createOrUpdateLambdaFunction(region, roleArn string, payload []byte) error { - config := aws.NewConfig().WithRegion(region) + config := infra.config.WithRegion(region) svc := lambda.New(session.New(), config) exists, err := lambdaExists(svc)