timescale / terraform-provider-timescale

Timescale Cloud Terraform Provider
Apache License 2.0
20 stars 2 forks source link

Error when creating Timescale service with VPC ID: no Endpoint for that service id exists (regression in 1.11.1) #237

Open dennisameling opened 2 weeks ago

dennisameling commented 2 weeks ago

Timescale module version: 1.11.1

When creating a Timescale service and providing a VPC ID to the resource, it returns the following error:

my-module.timescale_service.database: Creating...
╷
│ Error: Client Error
│ 
│   with my-module.timescale_service.database,
│   on main.tf line 194, in resource "timescale_service" "database":
│  194: resource "timescale_service" "database" {
│ 
│ Unable to create service, got error: no Endpoint for that service id exists
╵

Note that the database does get created in Timescale Cloud. The error shows up within ~2-3 seconds after Terraform starts creating the resource, so it doesn't wait for the resource to be fully created.

This works and Terraform waits for the service to be created:

resource "timescale_service" "database" {
  name        = "my-database"
  milli_cpu   = 500
  memory_gb   = 2
  region_code = "us-west-2"
}

This doesn't work and returns said error after ~2-3 seconds:

resource "timescale_service" "database" {
  name        = "my-database"
  milli_cpu   = 500
  memory_gb   = 2
  region_code = "us-west-2"
  vpc_id      = 1234
}
dennisameling commented 2 weeks ago

I just tried again with the older 1.11.0 version of the provider and that works correctly. Updating to 1.11.1 instantly breaks things. There's probably a regression in the newer version. Hope that helps!