Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text to inform users about ESC on creds error #2907

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) erro
if _, _, diag := awsbase.GetAwsConfig(context.Background(), config); diag != nil && diag.HasError() {
return fmt.Errorf("unable to validate AWS credentials. \n"+
"Details: %s\n"+
"Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`. \n", formatDiags(diag))
"Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`. \n\n"+
"NEW: You can use Pulumi ESC to set up dynamic credentials with AWS OIDC to ensure the "+
"correct and valid credentials are used.\nLearn more: "+
"https://www.pulumi.com/blog/esc-env-run-aws/", formatDiags(diag))
}

return nil
Expand Down
Loading