stackitcloud / terraform-provider-stackit

The official Terraform provider for STACKIT
https://registry.terraform.io/providers/stackitcloud/stackit
Apache License 2.0
34 stars 13 forks source link

SKE Enablement logic fails on a fresh project for the first time #454

Closed PeterStolz closed 1 month ago

PeterStolz commented 1 month ago

Hi, I am deploying to a "fresh" STACKIT project and the first time I ran my terraform script I got the following error:

╷
│ Error: Error creating cluster
│ 
│   with stackit_ske_cluster.ske,
│   on main.tf line 202, in resource "stackit_ske_cluster" "ske":
│  202: resource "stackit_ske_cluster" "ske" {
│ 
│ Wait for SKE enablement: 404 Not Found, status code 404, Body: {"code":"NotFound",
│ "message":"project id \"6d519696-52b3-45ac-9cc1-3d95831005aa\": not found", "details":""}
│ 
╵

Running it again the enablement logic seemed to work and it created the cluster successfully.

Expected behaviour: It should run through without errors the first time.

DiogoFerrao commented 1 month ago

Hey @PeterStolz, thank you for reaching out!

Sorry for the inconvenience, we are aware of this issue and plan to address it this week.

Regards, Diogo

PeterStolz commented 1 month ago

Awesome. Thanks for the quick response

DiogoFerrao commented 1 month ago

Hey @PeterStolz, we have since moved from the deprecated EnableService endpoints of the SKE API to the EnableService endpoint of the Service Enablement API.

As a step in this process, we created a new waiter for the EnableService call, which should solve the problem of the SKE service not being available immediately after the call to enable it has succeeded.

If you still have this problem, please feel free to reach out and reopen this issue.