<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ000011CboX0ASOkta Classic EngineAPI Access ManagementAnswered2025-08-13T09:00:34.000Z2025-06-26T07:37:46.000Z2025-06-26T15:28:08.000Z

wdhrt (wdhrt) asked a question.

Terraform Provider 4.8.1 platform_included attribute

Image is not available

(terraform plan result)

Image is not available

(error message from terraform apply)

Image is not available

(state file after import)

 

I am currently working on terraforming policies using terraform okta provider 4.8.1 version.

 

There is one problem in the current test tenant, so I would like to ask you.

 

I tried to add "other desktop" or "other mobile" settings in platform_included by referring to https://registry.terraform.io/providers/okta/okta/4.8.1/docs/resources/app_signon_policy_rule .

 

When I did terraform plan, I thought it would be added well, but when I applied it, the following error occurred.

 

│ 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.

│

│ with okta_app_signon_policy_rule.test,

│ on test.tf line 1, in resource "okta_app_signon_policy_rule" "test":

│ 1: resource "okta_app_signon_policy_rule" "test" {

 

The error is that okta api says that if os_type is "other~~", os_expression must be included.

 

And as an extra, I set "other desktop" on the admin console and imported it into terraform and looked at the state file, and os_expression was coming to an empty value.

 

I didn't want that setting to change, so I tried applying "", "", "null", etc. in os_expression, but the above error continued to occur.

 

In conclusion, the terraform provider gives empty values to the "os_expression" attribute for os_type being "other~", and in fact, the admin console does not have a window to change the "os_expression" attribute, whereas okta api expects that there will always be an "os_expression" value for the platform "other~~".

 

Is there a good solution to this error?

 

In addition, what kind of os_expression setting is it, and we'd like to catch the people who use uvuntu

 

Please let me know what happens if you put os_expression = "Linux" or os_expression = "Linux.*(Ubuntu|Debian)" in the terraform code. (This way, the value goes in anyway, so I can apply.)


Loading
Terraform Provider 4.8.1 platform_included attribute
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply