Skip to content

Commit 5aef960

Browse files
committed
s3 user trouble
1 parent 9c83177 commit 5aef960

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

aws/cluster-autoscaler-policy.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"Effect": "Allow",
77
"Action": [
88
"autoscaling:SetDesiredCapacity",
9-
"autoscaling:TerminateInstanceInAutoScalingGroup"
9+
"autoscaling:TerminateInstanceInAutoScalingGroup",
10+
"ec2:DescribeImages",
11+
"ec2:GetInstanceTypesFromInstanceRequirements",
12+
"eks:DescribeNodegroup"
1013
],
1114
"Resource": "*",
1215
"Condition": {
@@ -19,11 +22,13 @@
1922
"Sid": "VisualEditor1",
2023
"Effect": "Allow",
2124
"Action": [
22-
"autoscaling:DescribeAutoScalingInstances",
2325
"autoscaling:DescribeAutoScalingGroups",
24-
"ec2:DescribeLaunchTemplateVersions",
26+
"autoscaling:DescribeAutoScalingInstances",
27+
"autoscaling:DescribeLaunchConfigurations",
28+
"autoscaling:DescribeScalingActivities",
2529
"autoscaling:DescribeTags",
26-
"autoscaling:DescribeLaunchConfigurations"
30+
"ec2:DescribeInstanceTypes",
31+
"ec2:DescribeLaunchTemplateVersions"
2732
],
2833
"Resource": "*"
2934
}

aws/s3-user.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "aws_iam_access_key" "state_user_key" {
77
}
88

99
resource "aws_iam_user_policy" "state_user_policy" {
10-
user = aws_iam_user.state_user.id
10+
user = aws_iam_user.state_user.name
1111
policy = data.aws_iam_policy_document.state_user_policy.json
1212
}
1313

0 commit comments

Comments
 (0)