Steps to reproduce
Create a main.tf file using the terraform module:
module "postgresql" {
source = "git::https://github.com/canonical/postgresql-operator//terraform?ref=v16/1.226.0"
app_name = "pg"
model_uuid = "uuid"
}
Expected behavior
The plan should work as model_uuid is a mandatory variable for charm module charms as defined in spec CC008.
Actual behavior
terraform plan returns the following error:
$ terraform plan
╷
│ Error: Unsupported argument
│
│ on main.tf line 4, in module "postgresql":
│ 4: model_uuid = "uuid"
│
│ An argument named "model_uuid" is not expected here.
Versions
Operating system: Ubuntu 24.04
Juju CLI: n/a
Juju agent: n/a
Charm revision: v16/1.226.°
LXD: n/a
Log output
n/a
Additional context
A juju_model variable has been introduced in #1319 instead of model_uuid. Probably because the spec was still under discussion.
Steps to reproduce
Create a
main.tffile using the terraform module:Expected behavior
The plan should work as
model_uuidis a mandatory variable for charm module charms as defined in spec CC008.Actual behavior
terraform planreturns the following error:Versions
Operating system: Ubuntu 24.04
Juju CLI: n/a
Juju agent: n/a
Charm revision: v16/1.226.°
LXD: n/a
Log output
n/a
Additional context
A
juju_modelvariable has been introduced in #1319 instead ofmodel_uuid. Probably because the spec was still under discussion.