-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathiam_policy.json.tftpl
60 lines (60 loc) · 1.28 KB
/
iam_policy.json.tftpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"Statement": [
{
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogStreams"
],
"Effect": "Allow",
"Resource": [
"arn:aws:logs:*:*:log-group:DiscrimiNAT:log-stream:*"
]
},
{
"Action": [
"ec2:DescribeNetworkInterfaces",
"ec2:DescribeSecurityGroups",
"ec2:DescribeAddresses"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"ssm:GetParameter"
],
"Effect": "Allow",
"Resource": ${iam_get_json_ssm_params}
},
%{ if iam_get_json_secrets != "[]" }
{
"Action": [
"secretsmanager:GetSecretValue"
],
"Effect": "Allow",
"Resource": ${iam_get_json_secrets}
},
%{endif}
{
"Action": [
"ec2:ModifyInstanceAttribute",
"ec2:AssociateAddress"
],
"Condition": {
"Null": {
"aws:ResourceTag/discriminat": false
}
},
"Effect": "Allow",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "autoscaling:SetInstanceHealth",
"Resource": "arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/discriminat-*"
}
],
"Version": "2012-10-17"
}