You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Affected Resource(s)
okta_app_signon_policy_rule
Issue summary
When an authentication policy rule is created via Okta admin console with OS_TYPE = "OTHER" and the resource okta_app_signon_policy_rule is imported using terraform import, the exported resource has os_expression set to "".
When running a terraform apply , it fails because os_expression doesn't accept "" value.
Please see error below: Error: failed to create app sign on policy rule: the API returned an error: Api validation failed: conditions.platform. Causes: errorSummary: conditions.platform: The condition 'platform' must have os.expression if os.type is OTHER.
Create an authentication policy rule via Okta admin console with os_type = "OTHER"
Import the authentication policy rule to terraform
Run terraform plan
When an authentication policy rule is created with os_type = "OTHER" and it is retrieved via API, notice that os_expression = "", however terraform resource doesn't accept the same value.
References
#0000
The text was updated successfully, but these errors were encountered:
rajnadimpalli
changed the title
os_expression is not working as expected when a okta_app_signon_policy_rule resource is imported
os_expression is not working as expected when a okta_app_signon_policy_rule resource is imported with os_type = "OTHER"
Nov 16, 2024
Community Note
Terraform Version
Affected Resource(s)
Issue summary
When an authentication policy rule is created via Okta admin console with
OS_TYPE = "OTHER"
and the resourceokta_app_signon_policy_rule
is imported usingterraform import
, the exported resource hasos_expression
set to""
.When running a
terraform apply
, it fails becauseos_expression
doesn't accept""
value.Please see error below:
Error: failed to create app sign on policy rule: the API returned an error: Api validation failed: conditions.platform. Causes: errorSummary: conditions.platform: The condition 'platform' must have os.expression if os.type is OTHER.
Terraform Configuration Files
Steps to Reproduce
terraform plan
When an authentication policy rule is created with os_type = "OTHER" and it is retrieved via API, notice that os_expression = "", however terraform resource doesn't accept the same value.
References
The text was updated successfully, but these errors were encountered: