pellepelster / solidblocks

Solidblocks is a library of reusable components for infrastructure operation, automation and developer experience
https://pellepelster.github.io/solidblocks/
MIT License
25 stars 5 forks source link

fix: Change label variable type to satisfy terraform validate. #9

Closed christoph-buente closed 1 year ago

christoph-buente commented 1 year ago

When using version 0.1.0, terraform complained about the label being an object without proper object definition. As labels can be anything, I changed the type to map. Now terraform validate runs successfully. The PR fixes the following error message:

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
╷
│ Error: Invalid type specification
│ 
│   on .terraform/modules/rds-postgresql/solidblocks-hetzner/modules/rds-postgresql/variables.tf line 87, in variable "labels":
│   87:   type        = object
│ 
│ The object type constructor requires one argument specifying the attribute types and values as a map.
pellepelster commented 1 year ago

thanks for the fix