Add the data source okta_app_signon_policy_rule
#2111
Labels
enhancement
Asking for new behavior or feature
okta_app_signon_policy_rule
#2111
Community Note
Description
When creating a
okta_app_signon_policy
, it automatically create a default rule named "Catch-all Rule" which can only be managed via Terraform after an import. This import requires to retrieve the id of the rule and this cannot be done automatically via Terraform, we need manual action to manage itThe goal here is to reduce the manual work and automatize the process.
New or Affected Resource(s)
The goal here is to create the data source named
okta_app_signon_policy_rule
.With this data source, we could have the following automatic workflow
Potential Terraform Configuration
First we would create the policy :
Then declare this data source to retrieve the rules of the policy:
The output of this data source could be a list of policy rules with the following structure:
We now just need to filter and select only the rule with the name "Catch-all Rule" and update it
References
I've looked at the following PR having the same issue (I'm also currently facing this issue right now), and this could help more developers to use the Okta provider
The API to retrieve the rules of a policy already exists here
Thanks for reading.
The text was updated successfully, but these errors were encountered: