Add operator troubleshooting role policy
Browse files
iam/operator-role-policy.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Version": "2012-10-17",
|
| 3 |
+
"Statement": [
|
| 4 |
+
{
|
| 5 |
+
"Sid": "SeeTheHostAndItsHealth",
|
| 6 |
+
"Effect": "Allow",
|
| 7 |
+
"Action": [
|
| 8 |
+
"ec2:DescribeInstances",
|
| 9 |
+
"ec2:DescribeInstanceStatus",
|
| 10 |
+
"ec2:DescribeVolumes",
|
| 11 |
+
"ec2:DescribeSecurityGroups",
|
| 12 |
+
"cloudwatch:GetMetricData",
|
| 13 |
+
"cloudwatch:GetMetricStatistics",
|
| 14 |
+
"cloudwatch:DescribeAlarms",
|
| 15 |
+
"cloudwatch:DescribeAlarmHistory",
|
| 16 |
+
"logs:GetLogEvents",
|
| 17 |
+
"logs:FilterLogEvents",
|
| 18 |
+
"logs:DescribeLogGroups",
|
| 19 |
+
"logs:StartQuery"
|
| 20 |
+
],
|
| 21 |
+
"Resource": "*"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"Sid": "DriveTheBoxThroughSystemsManager",
|
| 25 |
+
"Effect": "Allow",
|
| 26 |
+
"Action": [
|
| 27 |
+
"ssm:DescribeInstanceInformation",
|
| 28 |
+
"ssm:SendCommand",
|
| 29 |
+
"ssm:GetCommandInvocation",
|
| 30 |
+
"ssm:ListCommandInvocations",
|
| 31 |
+
"ssm:StartSession",
|
| 32 |
+
"ssm:TerminateSession",
|
| 33 |
+
"ssm:ListAssociations",
|
| 34 |
+
"ssm:DescribeAssociationExecutions",
|
| 35 |
+
"ssm:StartAutomationExecution",
|
| 36 |
+
"ssm:GetAutomationExecution",
|
| 37 |
+
"ssm:DescribeAutomationExecutions"
|
| 38 |
+
],
|
| 39 |
+
"Resource": "*"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"Sid": "AnswerWhyDidThisActionFail",
|
| 43 |
+
"Effect": "Allow",
|
| 44 |
+
"Action": [
|
| 45 |
+
"iam:GetInstanceProfile",
|
| 46 |
+
"iam:GetRole",
|
| 47 |
+
"iam:GetRolePolicy",
|
| 48 |
+
"iam:ListAttachedRolePolicies",
|
| 49 |
+
"iam:ListRolePolicies",
|
| 50 |
+
"iam:GetPolicy",
|
| 51 |
+
"iam:GetPolicyVersion",
|
| 52 |
+
"iam:SimulatePrincipalPolicy"
|
| 53 |
+
],
|
| 54 |
+
"Resource": "*"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"Sid": "MutateOnlyTaggedGamingHosts",
|
| 58 |
+
"Effect": "Allow",
|
| 59 |
+
"Action": ["ec2:RebootInstances", "ec2:StopInstances", "ec2:StartInstances"],
|
| 60 |
+
"Resource": "*",
|
| 61 |
+
"Condition": {
|
| 62 |
+
"StringEquals": {
|
| 63 |
+
"ec2:ResourceTag/Project": "steam-gpu"
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
]
|
| 68 |
+
}
|