Skip to content

Latest commit

 

History

History
99 lines (73 loc) · 2.14 KB

quickstart.adoc

File metadata and controls

99 lines (73 loc) · 2.14 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 higher version is installed

  1. Clone the repo:

    git clone https://github.com/oracle-terraform-modules/terraform-oci-logging.git tflogging
    
    cd tflogging
    
    cp terraform.tfvars.example terraform.tfvars
  2. Create a provider.tf file and add the following:

    provider "oci" {
      tenancy_id           = var.tenancy_id
      user_ocid            = var.user_id
      fingerprint          = var.api_fingerprint
      private_key_path     = var.api_private_key_path
      region               = var.region
    }
  3. Set mandatory provider parameters:

    • api_fingerprint

    • api_private_key_path

    • region

    • tenancy_id

    • user_id

  4. Set other required parameters:

    • compartment_id

    • service_logdef

    • linux_logdef

    • windows_logdef

  5. Optional parameters to override:

    • vcn_id

    • label_prefix

    • log_retention_duration

    • loggroup_tags

  6. Run Terraform:

    terraform init
    terraform plan
    terraform apply