Skip to content

Commit

Permalink
Change IAM names to be release specific
Browse files Browse the repository at this point in the history
  • Loading branch information
dojci committed Dec 9, 2021
1 parent 817eaf2 commit cb1a77f
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 @@ -68,7 +68,7 @@ data "aws_iam_policy_document" "this" {
resource "aws_iam_policy" "this" {
count = local.k8s_irsa_role_create && (var.k8s_irsa_policy_enabled || var.k8s_irsa_policy_enabled) ? 1 : 0

name = "${var.k8s_irsa_role_name_prefix}-${var.helm_chart_name}"
name = "${var.k8s_irsa_role_name_prefix}-${var.helm_release_name}"
path = "/"
description = "Policy for cert-manager service"
policy = data.aws_iam_policy_document.this[0].json
Expand Down Expand Up @@ -103,7 +103,7 @@ data "aws_iam_policy_document" "this_irsa" {
resource "aws_iam_role" "this" {
count = local.k8s_irsa_role_create ? 1 : 0

name = "${var.k8s_irsa_role_name_prefix}-${var.helm_chart_name}"
name = "${var.k8s_irsa_role_name_prefix}-${var.helm_release_name}"
assume_role_policy = data.aws_iam_policy_document.this_irsa[0].json

tags = var.tags
Expand Down

0 comments on commit cb1a77f

Please sign in to comment.