╵
╷
│ Error: Invalid function argument
│
│ on .terraform/modules/gcs_buckets/main.tf line 160, in resource "google_storage_bucket" "buckets":
│ 160: for_each = [lookup(var.soft_delete_policy, each.value, {
│ 161: retention_duration_seconds = null
│ 162: })]
│ ├────────────────
│ │ while calling lookup(inputMap, key, default...)
│
│ Invalid value for "default" parameter: the default value must have the same type as the map
│ elements.
╵
It's working using the submodule simple_bucket.
The attribute soft_delete_policy looks for an object as entry in the submodule whereas it requires a map for the main module.
TL;DR
Hello,
I can't use the soft_delete_policy argument. Terraform v1.9.0 Module version 6.1.0
I have also tried using a variable with a default value + a real value.
Am I missing something please ?
Thank you.
Expected behavior
Observed behavior
No response
Terraform Configuration
Terraform Version
Additional information