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 returns the error Error: failed to get network zone: json: cannot unmarshal array into Go value of type okta.NetworkZone. The zone does get created in Okta itself, but is not in the Terraform state, so attempting to run terraform apply again would result in Terraform trying to create the resource again.
This seems to only happen for network zones of type = "DYNAMIC".
Steps to Reproduce
Create resource as described above (it's almost identical to the example in the provider documentation, here).
Run terraform apply.
Important Factoids
This is on an Okta Developer/Starter plan.
References
#0000
The text was updated successfully, but these errors were encountered:
Actually, I was also able to reproduce this with a network zone of type = "IP". The strange thing in this case is that the resource definition was exactly identical to one I was successfully able to create just a few minutes before it started failing.
Community Note
Terraform Version
v0.13.5
Affected Resource(s)
okta_network_zone
Terraform Configuration Files
Debug Output
https://gist.github.com/patoarvizu/134d058b633e26c076f2551cc0b35b83
Panic Output
Expected Behavior
The dynamic zone is created.
Actual Behavior
Terraform returns the error
Error: failed to get network zone: json: cannot unmarshal array into Go value of type okta.NetworkZone
. The zone does get created in Okta itself, but is not in the Terraform state, so attempting to runterraform apply
again would result in Terraform trying to create the resource again.This seems to only happen for network zones of
type = "DYNAMIC"
.Steps to Reproduce
terraform apply
.Important Factoids
This is on an Okta Developer/Starter plan.
References
The text was updated successfully, but these errors were encountered: