Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/ecs_ecr/templates/kms_policy.j2

raw
1 {
2 "Id": "key-ansible-test-policy-123",
3 "Version": "2012-10-17",
4 "Statement": [
5 {
6 "Sid": "Allow access for root user",
7 "Effect": "Allow",
8 "Principal": {
9 "AWS": "arn:aws:iam::{{ aws_caller_info.account }}:root"
10 },
11 "Action": "kms:*",
12 "Resource": "*"
13 },
14 {
15 "Sid": "Allow access for calling user",
16 "Effect": "Allow",
17 "Principal": {
18 "AWS": "{{ aws_caller_info.arn }}"
19 },
20 "Action": [
21 "kms:Create*",
22 "kms:Describe*",
23 "kms:Enable*",
24 "kms:List*",
25 "kms:Put*",
26 "kms:Update*",
27 "kms:Revoke*",
28 "kms:Disable*",
29 "kms:Get*",
30 "kms:Delete*",
31 "kms:TagResource",
32 "kms:UntagResource",
33 "kms:ScheduleKeyDeletion",
34 "kms:CancelKeyDeletion"
35 ],
36 "Resource": "*"
37 },
38 {
39 "Sid": "Allow use of the key",
40 "Effect": "Allow",
41 "Principal": {
42 "AWS": "{{ aws_caller_info.arn }}"
43 },
44 "Action": [
45 "kms:Encrypt",
46 "kms:Decrypt",
47 "kms:ReEncrypt*",
48 "kms:GenerateDataKey*",
49 "kms:DescribeKey"
50 ],
51 "Resource": "*"
52 },
53 {
54 "Sid": "Allow attachment of persistent resources",
55 "Effect": "Allow",
56 "Principal": {
57 "AWS": "{{ aws_caller_info.arn }}"
58 },
59 "Action": [
60 "kms:CreateGrant",
61 "kms:ListGrants",
62 "kms:RevokeGrant"
63 ],
64 "Resource": "*",
65 "Condition": {
66 "Bool": {
67 "kms:GrantIsForAWSResource": "true"
68 }
69 }
70 }
71 ]
72 }