Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/config/templates/config-kms-policy.json.j2

raw
1 {
2 "Version": "2012-10-17",
3 "Statement": [
4 {
5 "Sid": "Enable IAM User Permissions",
6 "Effect": "Allow",
7 "Principal": {
8 "AWS": "arn:aws:iam::{{ aws_account_id }}:root"
9 },
10 "Action": "kms:*",
11 "Resource": "*"
12 },
13 {
14 "Sid": "Allow use of the key",
15 "Effect": "Allow",
16 "Principal": {
17 "AWS": [
18 "arn:aws:iam::{{ aws_account_id }}:role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig",
19 ]
20 },
21 "Action": [
22 "kms:Encrypt",
23 "kms:Decrypt",
24 "kms:ReEncrypt*",
25 "kms:GenerateDataKey*",
26 "kms:DescribeKey"
27 ],
28 "Resource": "*"
29 },
30 {
31 "Sid": "Allow attachment of persistent resources",
32 "Effect": "Allow",
33 "Principal": {
34 "AWS": [
35 "arn:aws:iam::{{ aws_account_id }}:role/aws-service-role/config.amazonaws.com/AWSServiceRoleForConfig",
36 ]
37 },
38 "Action": [
39 "kms:CreateGrant",
40 "kms:ListGrants",
41 "kms:RevokeGrant"
42 ],
43 "Resource": "*",
44 "Condition": {
45 "Bool": {
46 "kms:GrantIsForAWSResource": "true"
47 }
48 }
49 }
50 ]
51 }