2026-03-05 #terraform #infrastructure-as-code #ac12dev #devtools

Terraform Provider for ac12.dev is Now Public

The ac12dev Terraform provider is officially available on the Terraform Registry. You can now manage your entire ac12.dev infrastructure as code.

## installation

Add the provider to your Terraform configuration and run terraform init:

terraform {
  required_providers {
    ac12dev = {
      source  = "AndrewCopeland/ac12dev"
      version = "~> 0.1"
    }
  }
}

provider "ac12dev" {
  username    = "myuser"
  private_key = file("~/.ac12/keys/default.pem")
}

Run terraform init and you're ready to go.


## what you can manage

The provider ships with resources covering the core ac12.dev platform:

There's also a project data source for looking up existing projects by name or ID.


## example: deploy a service with a domain

One terraform apply and your service is deployed, has a public subdomain, and runs a nightly cleanup job:

resource "ac12dev_service" "api" {
  name  = "my-api"
  image = "my-api:latest"
  port  = 8000
  env = {
    APP_ENV = "production"
  }
}

resource "ac12dev_domain" "api" {
  subdomain      = "my-api"
  target_type    = "service"
  target_service = ac12dev_service.api.name
}

resource "ac12dev_cron_job" "cleanup" {
  name           = "nightly-cleanup"
  schedule       = "0 3 * * *"
  target_service = ac12dev_service.api.name
  target_path    = "/cleanup"
  http_method    = "POST"
}

Define your service, wire up its subdomain, and schedule recurring jobs — all in one terraform apply. State is tracked, changes are diffs, rollbacks are a terraform destroy away.


## links

$ terraform apply

The ac12dev Terraform provider brings the full platform under version control. Services, domains, cron jobs, secrets — declared once, reproducible forever.

→ view provider on Terraform Registry