Skip to content

Commit

Permalink
Adapt to new GetAwsConfig signature
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
  • Loading branch information
squaremo committed Feb 15, 2023
1 parent 32251c1 commit c0a9c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) erro

config.SharedConfigFiles = []string{configPath}

if _, err := awsbase.GetAwsConfig(context.Background(), config); err != nil {
if _, _, err := awsbase.GetAwsConfig(context.Background(), config); err != nil {
return fmt.Errorf("unable to validate AWS credentials. \n"+
"Details: %v\n"+
"Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`. \n", err)
Expand Down

0 comments on commit c0a9c6a

Please sign in to comment.