-
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 higher version is installed
-
Clone the repo:
git clone https://github.com/oracle-terraform-modules/terraform-oci-logging.git tflogging cd tflogging cp terraform.tfvars.example terraform.tfvars
-
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 }
-
Set mandatory provider parameters:
-
api_fingerprint
-
api_private_key_path
-
region
-
tenancy_id
-
user_id
-
-
Set other required parameters:
-
compartment_id
-
service_logdef
-
linux_logdef
-
windows_logdef
-
-
Optional parameters to override:
-
vcn_id
-
label_prefix
-
log_retention_duration
-
loggroup_tags
-
-
Run Terraform:
terraform init terraform plan terraform apply