Skip to content

main.tf in basic example does not have correct source #644

@Rene-Auberger

Description

@Rene-Auberger

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"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions