-
-
Save candostdagdeviren/ad97120235d2a64f12eb3cd3cc17f5f6 to your computer and use it in GitHub Desktop.
User Policy in Terraform
This file contains 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_user_policy" "candost_policy" { | |
name_prefix = "${var.iam_user}" | |
user = "${aws_iam_user.candost.name}" | |
policy = <<EOF | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "dynamodb:*", | |
"Resource": [ | |
"arn:aws:dynamodb:eu-west-1:113608568902:table/MyTable" | |
] | |
} | |
] | |
} | |
EOF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment