Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Create reusable Terraform modules with proper input/output variables, remote state, and infrastructure best practices.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/oci-modules.md
1# OCI Terraform Module Patterns23## VCN Module45- VCN with public/private subnets6- Dynamic Routing Gateway (DRG) attachments7- Internet Gateway, NAT Gateway, Service Gateway8- Route tables and security lists / NSGs9- VCN Flow Logs1011## OKE Module1213- OKE cluster and node pools14- IAM policies and dynamic groups15- VCN-native pod networking16- Cluster autoscaling and observability hooks17- OCIR integration1819## Autonomous Database Module2021- Autonomous Database provisioning22- Network access controls and private endpoints23- Wallet and secret handling24- Backup and maintenance preferences25- Tagging and cost tracking2627## Object Storage Module2829- Buckets with lifecycle rules30- Versioning and retention31- Customer-managed encryption keys32- Replication policies33- Event rules and service connectors3435## Load Balancer Module3637- Public or private load balancer38- Backend sets and listeners39- TLS certificates40- Health checks41- Logging and metrics integration4243## Best Practices44451. Use the OCI provider version `~> 7.26`462. Model compartments explicitly and pass them through module interfaces473. Prefer NSGs over broad security list rules where practical484. Tag all resources with owner, environment, and cost center metadata495. Use dynamic groups and least-privilege IAM policies for workload access506. Keep network, identity, and data modules loosely coupled517. Expose OCIDs and subnet details for module composition528. Enable logging, metrics, and backup settings by default53