Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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] : []
Expand Down
4 changes: 2 additions & 2 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "juju_model_name" {
description = "Juju model name"
variable "juju_model" {
description = "Juju model uuid"
type = string
default = null
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
juju = {
source = "juju/juju"
version = ">= 0.14.0"
version = "~> 1.0.0"
}
}
}
Loading