Skip to content

This repository contains Terraform modules for configuring OCI Logging to capture and manage logs for various OCI services.

License

Notifications You must be signed in to change notification settings

angeline-hilda/OCI-Terraform-Logging

Repository files navigation

Oracle Cloud Infrastructure Terraform Module for Logging - Bucket Access Logs

This repository contains Terraform modules for configuring OCI Logging to capture and manage logs for various OCI services, sepcifically for Object Storage bucket access logs.

Use this module to:

  • Create Log Groups to organzie logs
  • Enable Bucket Access Logs to track read and write operations
  • Define log definitions to control what should be logged and the log storage duration

Pre-requisites

Ensure you have the following before using this module:

Using with Terraform

This module is compatible with OpenTofu. To use Terraform instead of OpenTofu, ensure you have Terraform installed and use the following provider configuration:

terraform {
  required_providers {
    oci = {
      source = "oracle/oci"
      version = ">= 6.31.0"
    }
  }
}

Deploy using OpenTofu or Terraform

  1. Use terraform.tfvars File

    The repository includes a terraform.tfvars.example file. Edit it and replace the placeholder values with your actual OCI credentials, to create your own terraform.tfvars file.

  2. To deploy the resources, initialize and apply the configuration:

tofu init  # or terraform init
tofu plan  # or terraform plan
tofu apply # or terraform apply

Cleanup

To destroy the created resources, use:

tofu destroy # or terraform destroy

Documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains Terraform modules for configuring OCI Logging to capture and manage logs for various OCI services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages