Closed joschug closed 2 months ago
Hey @joschug,
thanks for opening this ticket regarding our terraform provider.
I did a quick check trying to reproduce from my side, but was successfully creating, updating and deleting the group object. Could you please tell us the tenantkey of your cidaas instance, the version and if possible the client_id of the non-interactive client used? This would help us a lot tracking the issue down.
Best Regards, Raphael
@rgewidas Thank you for your reply!
The tenantkey is cidaas-mediserv-test, the client_id should be fdd9806b-cdc1-4e32-996a-30f0d8c3472a.
I'm using OpenTofu 1.7.1 with provider version 2.5.6.
Hey @joschug,
thank you for sharing those details.
Let me explain, why this issue is occurring for you. Right now in the mentioned terraform version is trying to do a PUT call in old Node service API structure, which still supports PUT. The cidaas API has been migrated in the meantime to Golang where the create and update operations were merged into a single POST endpoint, removing the previous PUT endpoint for updating user groups.
To resolve this, the Terraform provider needs to be updated from our side to use the new POST endpoint for both creating and updating user groups as per the Go service API.
Currently we are planning to do a bigger release version (3.0.x) for the terraform plugin in the next few days where this issue will be fixed.
@rgewidas Excellent, thank you for troubleshooting the issue. I'm looking forward to the 3.x release. I'll give it a try as soon as it's available and report back.
3.0.0 resolved this issue. Thanks!
I'm unable to update the description of an existing user group. Creating and deleting the group works, updating fails with status code 405.
We're using OpenTofu 1.7.1 with provider version 2.5.6.
Example group:
=>
tofu apply
succeedsAfter changing the description,
tofu apply
fails: