redpanda-data / terraform-provider-redpanda

Apache License 2.0
6 stars 3 forks source link

`tags` interacts weirdly with Terraform data model #175

Open ligfx opened 1 month ago

ligfx commented 1 month ago

Problem

resource_cluster.tags is configurable and passed to CreateCluster, but the actual remote state is ignored because Redpanda will automatically add redpanda-managed: true to the tags.

(This field should also probably be renamed cloud_provider_tags to match the API.)

Solution

An ideal solution lets users configure tags on creation, and then later modify tags and have either (1) the cluster complain that it needs to be recreated or (2) update to include the new tags (when supported by the Redpanda API). The current state is unideal as users can change the configured value and nothing will happen.

Couple ideas, none particularly stand out as the obvious direction to go: