Skip to content

Commit

Permalink
fix: Remove trailing hyphen from cluster security group and iam role …
Browse files Browse the repository at this point in the history
…name prefix
  • Loading branch information
Devin Young committed Jan 6, 2022
1 parent 3d151b2 commit 3e695db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ resource "aws_security_group" "cluster" {
count = local.create_cluster_sg ? 1 : 0

name = var.cluster_security_group_use_name_prefix ? null : local.cluster_sg_name
name_prefix = var.cluster_security_group_use_name_prefix ? "${local.cluster_sg_name}-" : null
name_prefix = var.cluster_security_group_use_name_prefix ? "${local.cluster_sg_name}" : null
description = var.cluster_security_group_description
vpc_id = var.vpc_id

Expand Down Expand Up @@ -191,7 +191,7 @@ resource "aws_iam_role" "this" {
count = var.create && var.create_iam_role ? 1 : 0

name = var.iam_role_use_name_prefix ? null : local.iam_role_name
name_prefix = var.iam_role_use_name_prefix ? "${local.iam_role_name}-" : null
name_prefix = var.iam_role_use_name_prefix ? "${local.iam_role_name}" : null
path = var.iam_role_path
description = var.iam_role_description

Expand Down

0 comments on commit 3e695db

Please sign in to comment.