What if your terraform plan failed the moment a change left the Always Free tier, and told you which limit you hit?
You get exactly that with this open-source Terraform module on Oracle Cloud: two Ampere A1 VMs with no public IP behind a load balancer, SSH only through OCI Bastion, and plan-time guardrails that reject any configuration leaving Always Free unless you switch to paid mode. Part 1 - Architecture Decisions helps you decide whether this architecture fits your project and which trade-offs you accept. Here you see the code, how it is tested, and how you deploy it.
Terraform Registry : devsahamerlin/alwaysfree-and-flexible-ha-compute-service/oci
Ready-to-run example : examples/example-1
GitHub : devsahamerlin/terraform-oci-alwaysfree-and-flexible-ha-compute-service
The constraint, and the Terraform IaC design goals
The Always Free limits your tenancy has to respect: Ampere A1 at 1,500 OCPU hours and 9,000 GB hours per month, which means 2 OCPUs and 12 GB in total (halved from 4 and 24); 1…