Skip to content

Commit

Permalink
shorten resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
Said B authored Jun 15, 2022
1 parent fcfc086 commit 53fcf03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ data "aws_iam_policy_document" "cluster_autoscaler" {

resource "aws_iam_policy" "cluster_autoscaler" {
count = local.k8s_irsa_role_create ? 1 : 0
name = "${var.cluster_name}-cluster-autoscaler"
name = "${var.cluster_name}-autoscaler"
path = "/"
description = "Policy for cluster-autoscaler service"

Expand Down Expand Up @@ -59,7 +59,7 @@ data "aws_iam_policy_document" "cluster_autoscaler_assume" {

resource "aws_iam_role" "cluster_autoscaler" {
count = local.k8s_irsa_role_create ? 1 : 0
name = "${var.cluster_name}-cluster-autoscaler"
name = "${var.cluster_name}-autoscaler"
assume_role_policy = data.aws_iam_policy_document.cluster_autoscaler_assume[0].json
}

Expand Down

0 comments on commit 53fcf03

Please sign in to comment.