Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
Fix AWS profiles.
Browse files Browse the repository at this point in the history
Use passed AWS config and do not recreate new one.
  • Loading branch information
mkubenka committed Jun 29, 2016
1 parent 8971c41 commit 0f11aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion goad.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0f11aa6

Please sign in to comment.