Closed whites11 closed 3 weeks ago
Possible solutions:
1) prevent the API error BAD_REQUEST: organization has no created instances in aws eu-west-1
when an organization has no services
2) decouple service creation and private_endpoint_ids
association. Basically revert https://github.com/ClickHouse/terraform-provider-clickhouse/pull/114
and make it work (requires changes to the backend API).
3) Make the existence of a service a requirement and make ŧerraform plan
fail in a better way.
According to control plane team, number 1 is not possible because:
Yeah unfortunately we have this limitation. We can't ask data plane about this information until an instance exists in that region. I believe this has to do with DP's cellular architecture -- the result would depend on the cell assigned to the (organization, region) pair, and that assignment doesn't occur until an instance is created there.
the only viable solution is number 2. I am working on that.
unfortunately this will be a breaking change for out customers, but there is no way around this
fixed in latest main, with a major release pending
It's necessary to specify
depends_on
on every resource, but there is a circular dependency:"clickhouse_private_endpoint_config" data source needs "clickhouse_service" resource "clickhouse_service" needs "clickhouse_private_endpoint_registration" resource "clickhouse_private_endpoint_registration" needs "aws_vpc_endpoint" resource "aws_vpc_endpoint" needs "clickhouse_private_endpoint_config" data source
Without specifying any of the
depends_on
clause,terraform plan
fails with the following error