Skip to content

Commit

Permalink
fix: null condition for enable_manage_gitlab_token in release v6.1.0 (#…
Browse files Browse the repository at this point in the history
…729)

Pull request #510 missed one last usage of `var.enable_manage_gitlab_token` as noted by @npalm.
  • Loading branch information
JulianCBC authored Mar 2, 2023
1 parent 79eb717 commit 90a05cc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,6 @@ resource "aws_iam_policy" "ssm" {
}

resource "aws_iam_role_policy_attachment" "ssm" {
count = var.enable_manage_gitlab_token ? 1 : 0

role = var.create_runner_iam_role ? aws_iam_role.instance[0].name : local.aws_iam_role_instance_name
policy_arn = aws_iam_policy.ssm.arn
}
Expand Down

0 comments on commit 90a05cc

Please sign in to comment.