Reference several aws_iam_policy_document data sources created with for_each in Terraform
I want to create multiple aws_iam_policy_document resources with for_each, to be later assumed by several roles, as follows: # Policy to allow services to assume the role data "aws_iam_policy_document" "this" { for_each = var.lambda_configuration statement { actions = ["sts:AssumeRole"] principals…