Terraform apply fails
(Doc ID 2713662.1)
Last updated on SEPTEMBER 23, 2020
Applies to:Oracle Cloud Infrastructure
Information in this document applies to any platform.
This document describes how to troubleshoot when the service response upon executing the Terraform operation produced a different terminal state than expected. For example, compute instances were supposed to be provisioned in reach in state `Running` but they unexpectedly moved to state `Terminating. You might encounter the following error:
Provider version 3.89.0 or below:
Error: unexpected state 'TERMINATING', wanted target 'RUNNING'. last error: %!s(<nil>)
Provider 3.90.0 or above:
Error: unexpected state 'TERMINATING', wanted target 'RUNNING'. last error: %!s(<nil>), The service for this resource encountered an unknown error. Provide the following resource ID if you contact support for help with that service: ocid1.instance.oc1.phx.XXXXXXXXXXXXX
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document