From f08e5f42de2db2811035ae951eeb7cc9c9b1c251 Mon Sep 17 00:00:00 2001 From: Marcelo Henrique Neppel Date: Thu, 27 Nov 2025 14:48:33 -0300 Subject: [PATCH] Update to Juju Terraform provider 1.0.0 Signed-off-by: Marcelo Henrique Neppel --- terraform/main.tf | 4 ++-- terraform/variables.tf | 4 ++-- terraform/versions.tf | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index bfa8b7f69c..2c704c5494 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -1,6 +1,5 @@ resource "juju_application" "machine_postgresql" { - name = var.app_name - model = var.juju_model_name + name = var.app_name charm { name = var.charm_name @@ -14,6 +13,7 @@ resource "juju_application" "machine_postgresql" { config = var.config constraints = var.constraints storage_directives = var.storage + model_uuid = var.juju_model dynamic "expose" { for_each = var.enable_expose ? [1] : [] diff --git a/terraform/variables.tf b/terraform/variables.tf index 3a32e8e789..851a0b1dea 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,5 +1,5 @@ -variable "juju_model_name" { - description = "Juju model name" +variable "juju_model" { + description = "Juju model uuid" type = string default = null } diff --git a/terraform/versions.tf b/terraform/versions.tf index 3586261576..2c9f99d018 100644 --- a/terraform/versions.tf +++ b/terraform/versions.tf @@ -3,7 +3,7 @@ terraform { required_providers { juju = { source = "juju/juju" - version = ">= 0.14.0" + version = "~> 1.0.0" } } }