Thanks! That works! It’s all about the syntax… 
The last option you gave generates output like:
dd_aws_full_ids = {
"<account1>" = "<external_id>"
"<account2>" = "<external_id>"
}
But how to use that as a value in a depndant resource? Llike if I want to write that value to SSM or Vault. Using aws_ssm_parameter I’m trying things like:
resource "aws_ssm_parameter" "dd_external_id" {
for acc in datadog_integration_aws.full_integration:
name = "/dd_external_ids/${acc.account_id}"
type = "String"
value = acc.external_id
}
Using content {} block or working with for_each… can’t seem to get the syntax here. Is it possible?