Overview

In this section, we will initilize the terraform for our environment. Now, it is important to remember that, terraform is Infrastructure as a Code tool, meaning, we write the code and terraform configure the infrastructure on cloud side. Because of that we have to install the necessary providers (Cloud Providers: OCI, AWS, Azure, etc) So let's get started with OCI:

Setting up a provider

There are several cloud providers:

Oracle: OCI

Amazon: AWS

Microsoft: Azure

Alibaba: No idea

Others: No idea

So let's focus on the OCI for now. From your account, (top right corner in OCI), you can generate new API key value pairs and when you do, you will have the followng information:

OCI API key info

These values are important for us. So choose a folder, where you want to have your terraform repository initialized and created the following file:

provider.tf

After that, we need to initiliza the environment:

Initialization