Skip to content

Latest commit

 

History

History
103 lines (76 loc) · 2.76 KB

quickstart.adoc

File metadata and controls

103 lines (76 loc) · 2.76 KB

Quickstart

  1. You have setup the required keys

  2. You know the required OCIDs

  1. git is installed

  2. ssh client is installed

  3. Terraform 0.12.8+ is installed

The instructions on this page allows you to create the base infrastructure which you can then extend manually in the OCI console.

  1. Clone the repo:

git clone https://github.com/oracle/terraform-oci-base.git tfbase
cd tfbase
cp terraform.tfvars.example terraform.tfvars
  1. Set mandatory parameters in terraform.tfvars:

    • api_fingerprint

    • api_private_key_path

    • compartment_id

    • tenancy_ocid

    • user_ocid

  2. Override other parameters:

    • region

  3. Optional parameters to override:

    • bastion_enabled

    • ssh_private_key_path

    • ssh_public_key_path

    • vcn_dns_label

    • vcn_name

  4. Create a provider.tf file and add the following:

provider "oci" {
  tenancy_ocid         = var.oci_base_provider.tenancy_id
  user_ocid            = var.oci_base_provider.user_id
  fingerprint          = var.oci_base_provider.api_fingerprint
  private_key_path     = var.oci_base_provider.api_private_key_path
  region               = var.oci_base_provider.region
  disable_auto_retries = false
}
  1. Run terraform init, plan and apply:

terraform init
terraform plan
terraform apply

The use of this Terraform module is explained in more details on the Oracle Solution guide.