oci_identity_domains_user throws error if mfa_enabled_on
is not set or is null; should be optional
#2223
Labels
mfa_enabled_on
is not set or is null; should be optional
#2223
Community Note
Terraform Version and Provider Version
Terraform v1.7.4
on darwin_arm64
Affected Resource(s)
affected_resources = oci_identity_domains_user
Terraform Configuration Files
Debug Output
After apply we see this:
OCI Audit shows this
Per docs
mfaEnabledOn
is optional and may be setnull
.Add this to above resource and error goes away:
https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/op-admin-v1-users-id-patch.html
Panic Output
Expected Behavior
Optional attributes like
mfa_enabled_on
should not cause error if excluded from the resource script.Actual Behavior
Error occurs if optional attribute
mfa_enabled_on
is excluded from the resource script.Steps to Reproduce
terraform apply
terraform apply
Important Factoids
References
mfa_enabled_on
https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/identity_domains_user#mfa_enabled_on
https://docs.oracle.com/en/cloud/paas/identity-cloud/rest-api/op-admin-v1-users-id-patch.html
The text was updated successfully, but these errors were encountered: