-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use "skip_groups" attribute without removing existing group assignments on subsequent runs. #1363
Comments
@NiallJude I'm not completely certain if this a bug with the provider and I need a support engineer to help look at your use case and configuration in more detail. Can you open a support ticket for this additional help? https://support.okta.com/help/s/?language=en_US |
Opening a ticket @monde. Thanks. |
@monde - I am having trouble logging in to open a ticket at this link. Is there a support email I could send to instead? |
The Okta provider is recommending we use a deprecated feature to work around this issue, hence this warning. Unless I am misunderstanding, as per the provider latest documentation in okta_app_group_assigment .
I'd love to get an answer on this too as it would be nice to get rid of the deprecated warnings. Either by un-deprecating it or providing a working solution without the additional noise. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
@NiallJude we were seeing this same issue, but upon applying the "problematic" plan we noticed that the actual group assignments and user assignments were unaffected. So perhaps the plan output is misleading and there's no substantial problem? |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This is still an issue; there is still no solution that doesn't result in deprecation warnings. |
Anyone using We have about 40 oauth apps managed in Terraform which means we get 40 deprecation warnings. It's very annoying having to scroll past pages and pages of deprecation warnings, especially on Terraform Cloud which doesn't group similar warnings together like TF CLI does. I agree with @GadgetGeekNI - surely the official docs should not be recommending a workaround which uses a deprecated feature. The |
I am also seeing this. I removed
per the deprecated attribute warning, and an |
Hi, I also switched Error: Unsupported attribute |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This issue isn't resolved, nothing has changed. As per my previous comment, the official docs should not be recommending a workaround which uses a deprecated feature. The groups attribute should surely be un-deprecated until a proper solution is available. |
Community Note
Terraform Version
Terraform v1.3.4
on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
Debug Output
If we run the config above, Terraform will attempt to remove all the assignment groups from state. As below from a
plan
:https://gist.github.com/NiallJude/8ffa8b6f87a78511085f852c76c7ef5d
Expected Behavior
I would like to maintain State on my existing
okta_app_group_assignments
so Terraform does not try to remove the Group associations. And I would like to do this without any warnings coming up about Deprecated Attributes.I suspect this is some misconfiguration on my part. Please let know the correct way to persist groups without using deprecated attributes.
Actual Behavior
If we add the below to
okta_app_saml
then it works around the issue in Debug Output wherein group assignments are being removed. Again, the group assignments stay in State if we add this:However, we see the following on every subsequent
validate
,plan
andapply
action.Steps to Reproduce
okta_app_saml
resource.okta_app_group_assignments
, and associate them to theokta_app_saml
above.apply
terraform plan
without either groups attempting to unassign, or receivingDeprecated attribute
warnings.The text was updated successfully, but these errors were encountered: