Skip to content

Improve error message when no region provided #223

@gdavison

Description

@gdavison

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions