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

[Bug] Incorrectly specifying a region causes "Request unauthorized" error #107

Open
atsui-bay1 opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@atsui-bay1
Copy link

atsui-bay1 commented Aug 2, 2024

What are you really trying to do?

Create a namespace

Describe the bug

If the region is specified slightly incorrectly (i.e. aws-us-east1 instead of aws-us-east-1), the error below is shown:

│ Error: Failed to create namespace
│ 
│   on temporal.tf line 47, in resource "temporalcloud_namespace" "namespace":
│   47: resource "temporalcloud_namespace" "namespace" {
│ 
│ rpc error: code = PermissionDenied desc = Request unauthorized

This is very confusing as it has nothing to do with authentication. Note that some other misspellings produce a useful error message, such as us-west-2 (without the aws-)

│ Error: Failed to create namespace
│ 
│   on temporal.tf line 47, in resource "temporalcloud_namespace" "namespace":
│   47: resource "temporalcloud_namespace" "namespace" {
│ 
│ rpc error: code = InvalidArgument desc = invalid region: us-west-2

Minimal Reproduction

resource "temporalcloud_namespace" "namespace" {
  name     = "my-namespace"
  regions  = ["aws-us-east1"]
  accepted_client_ca =base64encode("<my_cert.pem>")
  retention_days     = 90
}

Environment/Versions

  • OS and processor: [e.g. M1 Mac, x86 Windows, Linux] Linux and Mac
  • Temporal Version: [e.g. 1.14.0?] Terraform Provider 0.0.9
  • Are you using Docker or Kubernetes or building Temporal from source?

Additional context

@atsui-bay1 atsui-bay1 added the bug Something isn't working label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant