Skip to content

Commit e3216e3

Browse files
authored
docs: Fix cluster-autoscaler tags in irsa example (#1436)
1 parent 551c6d6 commit e3216e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/irsa/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IAM Roles for Service Accounts
22

3-
This example shows how to create an IAM role to be used for a Kubernetes `ServiceAccount`. It will create a policy and role to be used by the [cluster-autoscaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler) using the [public Helm chart](https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler-chart).
3+
This example shows how to create an IAM role to be used for a Kubernetes `ServiceAccount`. It will create a policy and role to be used by the [cluster-autoscaler](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler) using the [public Helm chart](https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler).
44

55
The AWS documentation for IRSA is here: https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
66

examples/irsa/irsa.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ data "aws_iam_policy_document" "cluster_autoscaler" {
4444

4545
condition {
4646
test = "StringEquals"
47-
variable = "autoscaling:ResourceTag/kubernetes.io/cluster/${module.eks.cluster_id}"
47+
variable = "autoscaling:ResourceTag/k8s.io/cluster-autoscaler/${module.eks.cluster_id}"
4848
values = ["owned"]
4949
}
5050

0 commit comments

Comments
 (0)