terraform-redhat / terraform-provider-rhcs

Terraform provider for Red Hat Cloud Services
Apache License 2.0
46 stars 77 forks source link

Error: IDP Update not supported #367

Open atucker-dev opened 10 months ago

atucker-dev commented 10 months ago

Terraform version: v1.5.2 rhcs version: v1.4.0

We are not able to update in-place on the rhcs_identity_provider resource. Adding update in-place support will remove the need to delete (outside of Terraform) and recreate the identity provider when we only update data associated with the provider (e.g. rotate the openid secret).

Error:

Error: IDP Update not supported.

with module.cluster.module.openid.rhcs_identity_provider.oidc-config,
on .terraform/modules/cluster/modules/openid-idp/[idp-config.tf](http://idp-config.tf/) line 1, in resource "rhcs_identity_provider" "oidc-config":
1: resource "rhcs_identity_provider" "oidc-config" {

This RHCS provider version does not support updating an existing IDP
seanmalloy commented 10 months ago

Jira link: OCM-4622

arendej commented 10 months ago

We plan to add this capability across our API for cluster IDP. Once that arrives, the Terraform resources will gain it as well. At this time the htpasswd IDP (same as the create-time cluster user) can only be created or deleted.

joschi36 commented 3 months ago

As the API still doesn't support updating the rhcs_identity_provider resource, would it be possible to implement a workaround in Terraform to trigger a resource replacement when a parameter changes? This might simplify the process until the API supports in-place updates.