The Juju Terraform provider 0.21.0 was released!

The Juju team is happy to announce that the Juju Terraform provider v0.21.0 was released on 28 July 2025!

Update the provider version:

terraform {
  required_providers {
    juju = {
      source = "juju/juju"
      version = "~=0.21.0"
    }
  }
}

Links

NOTES:

  • This release requires Juju controller version 2.9.49 or higher Juju.
  • If using JAAS, this release requires Juju controller version 3.6.5 or higher.
  • This release uses Juju client api code from the Juju 3.6.4 release.

ENHANCEMENTS

  • Retry model creation when error is TransactionAborted 763 by @SimoneDutto
  • Wait for hostname field to be populated when creating juju_machine resource 788 by @SimoneDutto
  • Add a no-service-account flag to the juju_kubernetes_cloud resource to avoid service account creation by the provier 793 by @SimoneDutto
  • Using the custom type for constraints in the juju_application resource 796 by @alesstimec
  • Waiting for machine deletion 761 by @alesstimec

BUG FIXES

  • Store juju_machine ID immediately after creation 799 by @kian99

DOCUMENTATION

CI IMPROVEMENTS