Skip to content

Latest commit

 

History

History
127 lines (86 loc) · 3.99 KB

prerequisites.adoc

File metadata and controls

127 lines (86 loc) · 3.99 KB

Pre-requisites

Start by installing Terraform and configuring your path.

If you are using Oracle Linux, you can install Terraform as follows:

yum -y install oraclelinux-developer-release-el7 && yum -y install terraform

If you are using a Mac, you can install Terraform as follows:

brew install terraform

If you prefer to install Terraform manually, you can follow these instructions:

  1. Open your browser and navigate to the Terraform download page. You need version 0.12.24+.

  2. Download the appropriate version for your operating system.

  3. Extract the the contents of compressed file and copy the terraform binary to a location that is in your path (see next section below).

  4. You will also need to configure your path.

Open a terminal and type the following:

sudo mv /path/to/terraform /usr/local/bin

Follow the steps below to configure your path on Windows:

  1. Click on 'Start', type 'Control Panel' and open it

  2. Select System > Advanced System Settings > Environment Variables

  3. Select System variables > PATH and click 'Edit'

  4. Click New and paste the location of the directory where you have extracted the terraform.exe

  5. Close all open windows by clicking 'OK'

  6. Open a new terminal and verify terraform has been properly installed

Open a terminal and test:

terraform -v
Terraform v0.12.24

Follow the documentation for generating and uploading your api keys.

Note the key fingerprint.

Follow the documentation for creating a compartment.

The following OCIDs are required:

  1. Compartment OCID

  2. Tenancy OCID

  3. User OCID

Follow the documentation for obtaining the tenancy and user ocids.

To obtain the compartment OCID:

  1. Navigate to Identity > Compartments

  2. Click on your Compartment

  3. Locate OCID on the page and click on 'Copy'