- terraform-vm/: ARM VM (A1.Flex Free Tier), Docker Compose, Block Volume, LB+WAF+SSL - terraform-oke/: OKE cluster (3 nodes Intel), NodePort, LB+WAF+SSL - k8s/: namespace, deployments, services, PVC, secrets, configmap - Dockerfile.frontend: self-contained nginx+dist image - push-images.sh: multi-arch build (amd64+arm64) + push to OCIR - dns.tf: conditional OCI DNS Zone + A record (when domain available) - Both stacks 100% independent, no shared modules - .gitignore: terraform state, .terraform/, *.tfvars
23 lines
429 B
HCL
23 lines
429 B
HCL
terraform {
|
|
required_version = ">= 1.5.0"
|
|
|
|
required_providers {
|
|
oci = {
|
|
source = "oracle/oci"
|
|
version = ">= 6.0.0"
|
|
}
|
|
tls = {
|
|
source = "hashicorp/tls"
|
|
version = ">= 4.0.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "oci" {
|
|
tenancy_ocid = var.tenancy_ocid
|
|
user_ocid = var.user_ocid
|
|
fingerprint = var.fingerprint
|
|
private_key_path = var.private_key_path
|
|
region = var.region
|
|
}
|