Skip to content

Commit 8c61f58

Browse files
ffjiamax-rocket-internet
authored andcommitted
add additional policies for control plane log setup. (#377)
* add additional policies for control plane log setup. * Fix typos (#379) * Fix IAM instance profile toggle for mixed launch templates (#381) * add additional policies for control plane log setup. * add two actions.
1 parent feb8810 commit 8c61f58

File tree

1 file changed

+121
-0
lines changed

1 file changed

+121
-0
lines changed

examples/eks_test_fixture/README.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# eks_test_fixture example
2+
3+
This set of templates serves a few purposes. It:
4+
5+
1. shows developers how to use the module in a straightforward way as integrated with other terraform community supported modules.
6+
2. serves as the test infrastructure for CI on the project.
7+
3. provides a simple way to play with the Kubernetes cluster you create.
8+
9+
## IAM Permissions
10+
11+
The following IAM policy is the minimum needed to execute the module from the test suite.
12+
13+
```json
14+
{
15+
"Version": "2012-10-17",
16+
"Statement": [
17+
{
18+
"Sid": "VisualEditor0",
19+
"Effect": "Allow",
20+
"Action": [
21+
"autoscaling:AttachInstances",
22+
"autoscaling:CreateAutoScalingGroup",
23+
"autoscaling:CreateLaunchConfiguration",
24+
"autoscaling:CreateOrUpdateTags",
25+
"autoscaling:DeleteAutoScalingGroup",
26+
"autoscaling:DeleteLaunchConfiguration",
27+
"autoscaling:DeleteTags",
28+
"autoscaling:Describe*",
29+
"autoscaling:DetachInstances",
30+
"autoscaling:SetDesiredCapacity",
31+
"autoscaling:UpdateAutoScalingGroup",
32+
"autoscaling:SuspendProcesses",
33+
"ec2:AllocateAddress",
34+
"ec2:AssignPrivateIpAddresses",
35+
"ec2:Associate*",
36+
"ec2:AttachInternetGateway",
37+
"ec2:AttachNetworkInterface",
38+
"ec2:AuthorizeSecurityGroupEgress",
39+
"ec2:AuthorizeSecurityGroupIngress",
40+
"ec2:CreateDefaultSubnet",
41+
"ec2:CreateDhcpOptions",
42+
"ec2:CreateEgressOnlyInternetGateway",
43+
"ec2:CreateInternetGateway",
44+
"ec2:CreateNatGateway",
45+
"ec2:CreateNetworkInterface",
46+
"ec2:CreateRoute",
47+
"ec2:CreateRouteTable",
48+
"ec2:CreateSecurityGroup",
49+
"ec2:CreateSubnet",
50+
"ec2:CreateTags",
51+
"ec2:CreateVolume",
52+
"ec2:CreateVpc",
53+
"ec2:DeleteDhcpOptions",
54+
"ec2:DeleteEgressOnlyInternetGateway",
55+
"ec2:DeleteInternetGateway",
56+
"ec2:DeleteNatGateway",
57+
"ec2:DeleteNetworkInterface",
58+
"ec2:DeleteRoute",
59+
"ec2:DeleteRouteTable",
60+
"ec2:DeleteSecurityGroup",
61+
"ec2:DeleteSubnet",
62+
"ec2:DeleteTags",
63+
"ec2:DeleteVolume",
64+
"ec2:DeleteVpc",
65+
"ec2:DeleteVpnGateway",
66+
"ec2:Describe*",
67+
"ec2:DetachInternetGateway",
68+
"ec2:DetachNetworkInterface",
69+
"ec2:DetachVolume",
70+
"ec2:Disassociate*",
71+
"ec2:ModifySubnetAttribute",
72+
"ec2:ModifyVpcAttribute",
73+
"ec2:ModifyVpcEndpoint",
74+
"ec2:ReleaseAddress",
75+
"ec2:RevokeSecurityGroupEgress",
76+
"ec2:RevokeSecurityGroupIngress",
77+
"ec2:UpdateSecurityGroupRuleDescriptionsEgress",
78+
"ec2:UpdateSecurityGroupRuleDescriptionsIngress",
79+
"ec2:CreateLaunchTemplate",
80+
"ec2:CreateLaunchTemplateVersion",
81+
"ec2:DeleteLaunchTemplate",
82+
"ec2:DeleteLaunchTemplateVersions",
83+
"ec2:DescribeLaunchTemplates",
84+
"ec2:DescribeLaunchTemplateVersions",
85+
"ec2:GetLaunchTemplateData",
86+
"ec2:ModifyLaunchTemplate",
87+
"ec2:RunInstances",
88+
"eks:CreateCluster",
89+
"eks:DeleteCluster",
90+
"eks:DescribeCluster",
91+
"eks:ListClusters",
92+
"eks:UpdateClusterConfig",
93+
"eks:DescribeUpdate",
94+
"iam:AddRoleToInstanceProfile",
95+
"iam:AttachRolePolicy",
96+
"iam:CreateInstanceProfile",
97+
"iam:CreatePolicy",
98+
"iam:CreatePolicyVersion",
99+
"iam:CreateRole",
100+
"iam:DeleteInstanceProfile",
101+
"iam:DeletePolicy",
102+
"iam:DeleteRole",
103+
"iam:DeleteRolePolicy",
104+
"iam:DeleteServiceLinkedRole",
105+
"iam:DetachRolePolicy",
106+
"iam:GetInstanceProfile",
107+
"iam:GetPolicy",
108+
"iam:GetPolicyVersion",
109+
"iam:GetRole",
110+
"iam:GetRolePolicy",
111+
"iam:List*",
112+
"iam:PassRole",
113+
"iam:PutRolePolicy",
114+
"iam:RemoveRoleFromInstanceProfile",
115+
"iam:UpdateAssumeRolePolicy"
116+
],
117+
"Resource": "*"
118+
}
119+
]
120+
}
121+
```

0 commit comments

Comments
 (0)