Skip to content

PG16/edge not fully compatible with juju terraform provider v1 specification #1539

@seb4stien

Description

@seb4stien

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions