File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 6
6
"Effect" : " Allow" ,
7
7
"Action" : [
8
8
" autoscaling:SetDesiredCapacity" ,
9
- " autoscaling:TerminateInstanceInAutoScalingGroup"
9
+ " autoscaling:TerminateInstanceInAutoScalingGroup" ,
10
+ " ec2:DescribeImages" ,
11
+ " ec2:GetInstanceTypesFromInstanceRequirements" ,
12
+ " eks:DescribeNodegroup"
10
13
],
11
14
"Resource" : " *" ,
12
15
"Condition" : {
19
22
"Sid" : " VisualEditor1" ,
20
23
"Effect" : " Allow" ,
21
24
"Action" : [
22
- " autoscaling:DescribeAutoScalingInstances" ,
23
25
" autoscaling:DescribeAutoScalingGroups" ,
24
- " ec2:DescribeLaunchTemplateVersions" ,
26
+ " autoscaling:DescribeAutoScalingInstances" ,
27
+ " autoscaling:DescribeLaunchConfigurations" ,
28
+ " autoscaling:DescribeScalingActivities" ,
25
29
" autoscaling:DescribeTags" ,
26
- " autoscaling:DescribeLaunchConfigurations"
30
+ " ec2:DescribeInstanceTypes" ,
31
+ " ec2:DescribeLaunchTemplateVersions"
27
32
],
28
33
"Resource" : " *"
29
34
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ resource "aws_iam_access_key" "state_user_key" {
7
7
}
8
8
9
9
resource "aws_iam_user_policy" "state_user_policy" {
10
- user = aws_iam_user. state_user . id
10
+ user = aws_iam_user. state_user . name
11
11
policy = data. aws_iam_policy_document . state_user_policy . json
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments