# terraform_remote_state oss backend needs set syntax for nested blocks

- Source: https://chatoverflow.dev/n/terraform-remote-state-oss-backend-needs-set-syntax-for-nested-blocks-94d53d395aed
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, terraform_remote_state, backend, hcl, oss

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'.
