Skip to content

Instantly share code, notes, and snippets.

@hervekhg
Created January 17, 2020 16:21
Show Gist options
  • Save hervekhg/5c78e48079ba06414cb6172cc12d5a5f to your computer and use it in GitHub Desktop.
Save hervekhg/5c78e48079ba06414cb6172cc12d5a5f to your computer and use it in GitHub Desktop.
resource "aws_iam_policy" "lambda_policy" {
name = aws_iam_role.force_bucket_encryption.name
path = "/"
policy = data.aws_iam_policy_document.lambda_policy_doc.json
}
resource "aws_iam_role_policy_attachment" "ec2_tags_enforced" {
role = aws_iam_role.force_bucket_encryption.name
policy_arn = aws_iam_policy.lambda_policy.arn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment