Last active
November 3, 2021 22:29
-
-
Save madagra/51bc44fd9e7500a481da8d294aaa3320 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_iam_policy" "snapshot_passrole_policy" { | |
name = "snapshot_passrole_policy" | |
path = "/" | |
description = "Allow role to assume the snapshot role to create OpenSearch snapshots" | |
policy = <<EOF | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "iam:PassRole", | |
"Resource": "${aws_iam_role.snapshot_role.arn}" | |
} | |
] | |
} | |
EOF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment