-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
If I create an organisation role assignment via using stackit_authorization_organization_role_assignment and delete the assignment e.g. in the STACKIT Portal the next plan breaks instead of handling this drift gracefully.
I assume this might be due to unfinished implementation since the resource is part of an iam experiment.
Steps to reproduce
- Create an organisation role assignment using the resource
stackit_authorization_organization_role_assignment - Delete the assignment in the STACKIT Portal
- Run terraform plan or apply
resource "stackit_authorization_organization_role_assignment" "user_org_access" {
resource_id = local.organisation_id
role = "organization.auditor"
subject = "<redacted user email>"
}You will get the error:
│ Error: Error reading authorization
│
│ with stackit_authorization_organization_role_assignment.user_org_access,
│ on project_access.tf line 81, in resource "stackit_authorization_organization_role_assignment" "user_org_access":
│ 81: resource "stackit_authorization_organization_role_assignment" "user_org_access" {
│
│ Processing API payload: response members did not contain expected role assignment
Actual behavior
The provider is throwing an error.
Expected behavior
I would expect the provider to update the state according to the real world state. If the resource has been deleted in STACKIT, terraform should propose to recreate it.
Environment
- OS: MacOS
- Terraform version (see
terraform --version):v1.13.5 - Version of the STACKIT Terraform provider:
v0.71.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working