forked from LeanerCloud/terraform-aws-autospotting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautospotting-policy.json
36 lines (36 loc) · 1.06 KB
/
autospotting-policy.json
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
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"autoscaling:AttachInstances",
"autoscaling:DescribeAutoScalingGroups",
"autoscaling:DescribeAutoScalingInstances",
"autoscaling:DescribeLaunchConfigurations",
"autoscaling:DescribeTags",
"autoscaling:DetachInstances",
"autoscaling:TerminateInstanceInAutoScalingGroup",
"autoscaling:UpdateAutoScalingGroup",
"autoscaling:DescribeLifecycleHooks",
"cloudformation:Describe*",
"ec2:CreateTags",
"ec2:DeleteTags",
"ec2:DescribeInstanceAttribute",
"ec2:DescribeInstances",
"ec2:DescribeLaunchTemplates",
"ec2:DescribeLaunchTemplateVersions",
"ec2:DescribeRegions",
"ec2:DescribeSpotPriceHistory",
"ec2:RunInstances",
"ec2:TerminateInstances",
"iam:CreateServiceLinkedRole",
"iam:PassRole",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Effect": "Allow",
"Resource": "*"
}
]
}