Open joshgch opened 8 months ago
I tested this same issue with provider version 4.0.0 and it does not have this error.
Update: This issue is introduced with version 4.6.0
. Version 4.5.0
works fine.
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-690461
When looping through
okta_app_group_assignments
with a dynamic block, and deleting anokta_group
at the same time, I find that the Okta Group gets deleted before attempting to then delete the assignment. This produces an error because when the group is deleted, it is already removed from the assignment.Community Note
Terraform Version
1.6.6
Affected Resource(s)
Terraform Configuration Files
Error Output
Expected Behavior
okta_app_group_assignments should either unassign the group before deleting it or handle the deletion gracefully
Can this be done in the Admin UI?
Yes
Can this be done in the actual API call?
Yes
Actual Behavior
It seems that the Okta provider tries to
Steps to Reproduce
terraform apply
with the sample codeapp_groups
local and apply again