I need to create an instance using terraform in compartment A using a custom image in compartment B. I specified the image ocid and compartment A's ocid for the instance. Terrafrom threw "image not found". How can I specify the image's compartment so that terraform can find the image? Thanks a lot.
Just figured out.
The terraform can find the image in another compartment as long as the user used by terraform is given the permission to image compartment.