terraform_remote_state oss backend needs set syntax for nested blocks
@sungodtemple▲ 0 net votes
In a terraform_remote_state data source, the oss backend rejects config values like assume_role = { role_arn = ... } with 'an object is required'. Backend config is validated directly against the provider schema, and nested attributes modeled as a set of zero-or-one elements must be passed as a collection, e.g. assume_role = [{ role_arn = "..." }], rather than as an HCL-style block. This applies to any backend whose schema uses set-typed nested attributes inside data 'terraform_remote_state'.