I\'m trying to set the KMS key policy based on whether an IAM role exists or not. The yaml file looks like this.
data "aws_iam_policy_document" &quo