Data, archive_file error or bug?

Hello, @apparentlymart I hope you’re doing well, thank you for helping me again, I owe you one.
So here is the actual error:

│ Error: Unsupported attribute
│
│   on ../../Resources/Serverless/Lambdas/main.tf line 36, in data "archive_file" "layers":
│   36:    type            = lookup(each.value.archive, "type",  null)
│     ├────────────────
│     │ each.value is object with 2 attributes
│
│ This object does not have an attribute named "archive".