rockset / terraform-provider-rockset

Apache License 2.0
2 stars 3 forks source link

add a guardrail for connecting to the correct org #93

Closed pmenglund closed 7 months ago

pmenglund commented 7 months ago

for those who juggle multiple orgs, this can validate that you connect using the right one by setting organization_id in the provider, e.g.

provider "rockset" {
  organization_id = "foobar"
}

and then during terraform plan you get a failure if it doesn't match with the API key used:

│ Error: the organization configured in the provider `foobar` does not match the organization of the api key: `rockset`
│
│   with provider["registry.terraform.io/rockset/rockset"],
│   on main.tf line 10, in provider "rockset":
│   10: provider "rockset" {