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
v1.0.3
Affected Resource(s)
okta_domain
Terraform Configuration Files
Simple okta_domain as outlined in documentation.
Debug Output
Panic Output
Expected Behavior
Import a domain, and it not be recreated on subsequent runs
Actual Behavior
Domain requires recreation due to the name property not being set on import or refresh
Steps to Reproduce
terraform import existing custom domain
Run a plan, notice it will be recreated
Important Factoids
References
I noticed I cannot import an existing custom domain without subsequent applies recreating it. It appears to be due to the fact that the read function does not set the name property. The name property should be sync'd in the read function.
Community Note
Terraform Version
v1.0.3
Affected Resource(s)
Terraform Configuration Files
Simple okta_domain as outlined in documentation.
Debug Output
Panic Output
Expected Behavior
Import a domain, and it not be recreated on subsequent runs
Actual Behavior
Domain requires recreation due to the name property not being set on import or refresh
Steps to Reproduce
terraform import
existing custom domainImportant Factoids
References
I noticed I cannot import an existing custom domain without subsequent applies recreating it. It appears to be due to the fact that the read function does not set the
name
property. The name property should be sync'd in the read function.https://github.com/okta/terraform-provider-okta/blob/master/okta/resource_okta_domain.go#L89
The text was updated successfully, but these errors were encountered: