Skip to content

Commit

Permalink
revert secretsmanager policy count (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehedgpeth authored Sep 26, 2023
1 parent cfeb085 commit 600c87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/service_accounts/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ data "aws_iam_policy_document" "instance_role" {
}

resource "aws_iam_role_policy" "secretsmanager" {
count = var.existing_iam_instance_profile_name == null && !var.enable_airgap && local.secret_arns != [] ? 1 : 0
count = var.existing_iam_instance_profile_name == null && !var.enable_airgap ? 1 : 0

policy = data.aws_iam_policy_document.secretsmanager[0].json
role = local.iam_instance_role.id
Expand Down

0 comments on commit 600c87d

Please sign in to comment.