Skip to content

Latest commit

 

History

History
119 lines (89 loc) · 2.51 KB

quickstart.adoc

File metadata and controls

119 lines (89 loc) · 2.51 KB

Quickstart

  1. You have setup the required keys

  2. You know the required OCIDs

  3. You have the necessary permissions

  1. Git is installed

  2. SSH client is installed

  3. Terraform 1.0.0 or greater is installed

  1. Clone the repo:

    git clone https://github.com/oracle-terraform-modules/terraform-oci-drg.git tfdrg
    
    cd tfdrg
    
    cp terraform.tfvars.example terraform.tfvars
  2. 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
    }
  3. Set mandatory provider parameters in terraform.tfvars:

    • api_fingerprint

    • api_private_key_path

    • region

    • tenancy_id

    • user_id

  4. Override other parameters in terraform.tfvars:

    • compartment_id

    • label_prefix

    • drg_display_name

  5. Optional parameters to override:

    • drg_vcn_attachments

    • create_rpc

    • rpc_acceptor_id

    • rpc_acceptor_region

    • freeform_tags

    • defined_tags

  6. Run Terraform:

    terraform init
    terraform plan
    terraform apply