Table of Contents
-
You have setup the required keys
-
You know the required OCIDs
-
You have the necessary permissions
-
Git is installed
-
SSH client is installed
-
Terraform 1.0.0 or greater is installed
-
Clone the repo:
git clone https://github.com/oracle-terraform-modules/terraform-oci-drg.git tfdrg cd tfdrg cp terraform.tfvars.example terraform.tfvars
-
Create a provider.tf file and add the following:
provider "oci" { fingerprint = var.api_fingerprint private_key_path = var.api_private_key_path region = var.region tenancy_ocid = var.tenancy_id user_ocid = var.user_id } # provider identity parameters variable "api_fingerprint" { description = "fingerprint of oci api private key" type = string } variable "api_private_key_path" { description = "path to oci api private key used" type = string } variable "tenancy_id" { description = "tenancy id where to create the sources" type = string } variable "user_id" { description = "id of user that terraform will use to create the resources" type = string }
-
Set mandatory provider parameters in terraform.tfvars:
-
api_fingerprint
-
api_private_key_path
-
region
-
tenancy_id
-
user_id
-
-
Override other parameters in terraform.tfvars:
-
compartment_id
-
label_prefix
-
drg_display_name
-
-
Optional parameters to override:
-
drg_vcn_attachments
-
create_rpc
-
rpc_acceptor_id
-
rpc_acceptor_region
-
freeform_tags
-
defined_tags
-
-
Run Terraform:
terraform init terraform plan terraform apply