Skip to content

Deployment guide using Terraform is not working - for 14 and 16 #1606

@jasimioni-canonical

Description

@jasimioni-canonical

Steps to reproduce

Follow the documentation to deploy charmed-postgresql using the terraform providers and they will break.

Expected behavior

Deployment should just complete as expected

Actual behavior

$ terraform plan -var "juju_model_name=my-model"
╷
│ Error: Missing required argument
│ 
│   on main.tf line 1, in resource "juju_application" "machine_postgresql":
│    1: resource "juju_application" "machine_postgresql" {
│ 
│ The argument "model_uuid" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on main.tf line 3, in resource "juju_application" "machine_postgresql":
│    3:   model = "my-model"
│ 
│ An argument named "model" is not expected here.

Versions

Operating system:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy

Juju CLI:

$ juju version
3.6.21-genericlinux-amd64

LXD:

$ lxd version
5.21.4 LTS

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