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

Improve error message when no region provided #223

Open
gdavison opened this issue Apr 4, 2022 · 0 comments
Open

Improve error message when no region provided #223

gdavison opened this issue Apr 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@gdavison
Copy link
Contributor

gdavison commented Apr 4, 2022

The error message returned when no region parameter was found in any of the sources needs improvement.

For example, the AWS Provider returns:

Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: operation error STS: GetCallerIdentity, failed to resolve service endpoint, an AWS region is required, but was not found

We may need to either

  • validate that we have a region before trying to call sts:GetCallerIdentity, or
  • check the error type returned by the AWS SDK
@gdavison gdavison added the enhancement New feature or request label Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant