I create multiple SSM data sources with an iterator. Each of them has value json encoded list of strings. I want to merge all those lists in a single one:
const parameters = new DataAwsSsmParameter(this.stack, `someid`, {
forEach: iterator,
name: `prefix/${iterator.value}`,
provider: provider
})
Something like
flatten([for v in parameters: jsondecode(v.value)])
But all my attempts lead to
Because data.aws_ssm_parameter.someId (someId) has "for_each" set, its attributes must be accessed on specific instances.