Closed dkropachev closed 8 months ago
Now I see the issue, scylladbcloud_cluster
does have datacenter
field, same as scylladbcloud_vpc_peering
.
So let's remove datacenter_id
field, introduce datacenter
attribute in the scylladbcloud_cql_auth
resource, and also let's increase its schema version + implement a state upgrade (which will migrate datacenter_id
-> datacenter
).
Currently referring to a concrete datacenter is not consistent across the codebase and practically broken in one case.
Broken part:
scylladbcloud_cluster
resource, does not havedatacenter_id
field, while it is used byscylladbcloud_cql_auth
Inconsistency:
scylladbcloud_vpc_peering
resource usesdatacenter
, whilescylladbcloud_cql_auth
usesdatacenter_id
To address that we need to decide on whether we use
datacenter
ordatacenter_id
and fix code accordingly.