Oracle Cloud Free Tier

OCI offers free ARM instances with up to 4 OCPUs and 24GB of RAM. Combined with Terraform, we get free and reproducible cloud infrastructure.

Terraform Module

resource "oci_core_instance" "arm_vm" {
  availability_domain = data.oci_identity_availability_domain.ad.name
  compartment_id      = var.compartment_id
  display_name        = "arm-instance"
  shape               = "VM.Standard.A1.Flex"

  shape_config {
    ocpus         = 2
    memory_in_gbs = 12
  }

  source_details {
    source_type = "image"
    source_id   = var.image_id
  }
}

Automation

The provisioning script configures the node automatically:

  • Installs base dependencies
  • Configures networking
  • Joins the node to the Consul/Nomad cluster

Result

Cloud infrastructure deployed in minutes, versioned in git, and easily reproducible.