How to Get the Latest OS Image in Oracle Cloud Infrastructure (OCI) using Terraform

Guillermo Musumeci
8 min readNov 18, 2019

--

When we need to deploy a virtual machine or bare metal instance in OCI, we will need to get the OCID of the image based on the OCI region and operating system version.

We can achieve this by visiting https://docs.cloud.oracle.com/iaas/images/ page and browse for our preferred operating system.

--

--

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | ex-AWS | Entrepreneur | Book Author | Husband & Dad of ✌