Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
│ Error: Invalid value for input variable
│
│ on custom_attachment.tf line 18, in module "custom_attachment":
│ 18: scope = each.value.scope
│
│ The given value is not suitable for module.custom_attachment["3a7bcee1-3392-4be1-a6f5-cf809621b65e"].var.scope declared at custom_attachment_module/variables.tf:37,1-17: element 0: attribute
│ "properties": element 2: attribute "value": string required.
Panic Output
Expected Behavior
The provider should create the attachment.
Note that the problem happens with an exclusion list empty or not.
Actual Behavior
The provider gives an error on the exclusion element because it is a list
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform v1.7.5 on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
and as a result
Panic Output
Expected Behavior
The provider should create the attachment.
Note that the problem happens with an exclusion list empty or not.
Actual Behavior
The provider gives an error on the exclusion element because it is a list
Steps to Reproduce
terraform plan
Important Factoids
References
0000