Advertisement
bluethundr12

Untitled

Mar 26th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.22 KB | None | 0 0
  1. "{
  2.    \"Version\": \"2012-10-17\",
  3.    \"Statement\": [
  4.        {
  5.            \"Effect\": \"Allow\",
  6.            \"Action\": [
  7.                \"secretsmanager:ListSecrets\",
  8.                \"secretsmanager:GetRandomPassword\"
  9.            ],
  10.            \"Resource\": \"*\"
  11.        },
  12.        {
  13.            \"Effect\": \"Allow\",
  14.            \"Action\": [
  15.                \"kms:Decrypt\"
  16.            ],
  17.            \"Resource\": \"arn:aws:kms:us-east-1:12345678910:key/24260438-1817-4e0b-897c-7f7958edba98\"
  18.        },
  19.        {
  20.            \"Effect\": \"Allow\",
  21.            \"Action\": [
  22.                \"kms:List*\"
  23.            ],
  24.            \"Resource\": \"*\"
  25.        },
  26.        {
  27.            \"Effect\": \"Allow\",
  28.            \"Action\": [
  29.                \"secretsmanager:GetResourcePolicy\",
  30.                \"secretsmanager:GetSecretValue\",
  31.                \"secretsmanager:DescribeSecret\",
  32.                \"secretsmanager:ListSecretVersionIds\"
  33.            ],
  34.            \"Resource\": \"*\",
  35.            \"Condition\": {
  36.                \"ForAnyValue:StringEquals\": {
  37.                    \"secretsmanager:ResourceTag/Name\": user_name
  38.                }
  39.            }
  40.        }
  41.    ]
  42. }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement