How do you dynamically create an AWS IAM policy document with a variable number of resource blocks using terraform? How do you dynamically create an AWS IAM policy document with a variable number of resource blocks using terraform? json json