Hello,
I would like to use override_data in terraform tests.
However I need that the data object was a tuple. How can I achieve this ?
override_data {
target = data.aws_s3_object.data
values = {
body = "{\"data\":\"test\",\"description\":\"test\"}"
}
}
locals {
decoded_data = jsondecode(data.aws_s3_object.data[0].body)
}
Errors:
Error: Invalid index
│
│ on locals.tf line 8, in locals:
│ 8: decoded_data = jsondecode(data.aws_s3_object.data[0].body)
│ ├────────────────
│ │ data.aws_s3_object.data is empty tuple
Regards,