generated from terraform-ibm-modules/terraform-ibm-module-template
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
Closed
Labels
Description
Affected modules
- Basic example main.tf
Terraform CLI and Terraform provider versions
Terraform v1.11.2
on darwin_arm64
- provider registry.terraform.io/hashicorp/time v0.9.1
- provider registry.terraform.io/ibm-cloud/ibm v1.78.2
Terraform output
When running terraform apply using the given value "../.." this leads to errors such as
Error: Unsupported argument
│
│   on main.tf line 19, in module "database":
│   19:   location           = var.region
│
│ An argument named "location" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│   on main.tf line 20, in module "database":
│   20:   name               = "${var.prefix}-data-store"
│
│ An argument named "name" is not expected here.
╵
╷
and so on.
Expected behavior
The example should work running terraform apply just by defining the variables (without modifications in the main.tf itself).
This can be achieved by replacing the line with
source             = "terraform-ibm-modules/icd-postgresql/ibm"