scylladb / terraform-provider-scylladbcloud

Terraform provider for ScyllaDB Cloud.
https://registry.terraform.io/providers/scylladb/scylladbcloud/latest
Apache License 2.0
11 stars 10 forks source link

fix(cluster): make it treat deleted cluster properly #135

Closed dkropachev closed 8 months ago

dkropachev commented 8 months ago

Closes #134

main.tf:

resource "scylladbcloud_cluster" "aws" {
  name       = "test-cluster"
  cloud      = "AWS"
  region     = "us-east-1"
  node_count = 3
  node_type  = "t3.micro"
  cidr_block = "172.31.0.0/24"
  enable_dns = true
}

Steps to reproduce:

  1. terraform apply
  2. Delete cluster on UI
  3. terraform destroy

Currently endup in error:

│ Error: error reading cluster: Error "": CLUSTER_DELETED (http status 200, method GET url "https://app-api-dkropachev.ext.lab.scylla.cloud/account/100165/cluster/292?enriched=true")
│ 
│   with scylladbcloud_cluster.aws,
│   on main.tf line 6, in resource "scylladbcloud_cluster" "aws":
│    6: resource "scylladbcloud_cluster" "aws" {
│ 
╵