Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drobinson-moj committed Nov 29, 2023
1 parent 6ab4081 commit 8b08349
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,16 @@ resource "aws_secretsmanager_secret" "fixed" {
})
}

resource "aws_secretsmanager_secret_version" "fixed" {
for_each = merge(
local.secretsmanager_secrets_value,
local.secretsmanager_secrets_random,
)

secret_id = aws_secretsmanager_secret.fixed[each.key].id
secret_string = each.value.value
}

resource "aws_secretsmanager_secret" "placeholder" {
# Rotation can be added later as a configurable option
#checkov:skip=CKV2_AWS_57: Ensure Secrets Manager secrets should have automatic rotation enabled
Expand All @@ -268,16 +278,6 @@ resource "aws_secretsmanager_secret" "placeholder" {
})
}

resource "aws_secretsmanager_secret_version" "fixed" {
for_each = merge(
local.secretsmanager_secrets_value,
local.secretsmanager_secrets_random,
)

secret_id = aws_secretsmanager_secret.fixed[each.key].id
secret_string = each.value.value
}

resource "aws_iam_role" "this" {
name = "${var.iam_resource_names_prefix}-role-${var.name}"
path = "/"
Expand Down

0 comments on commit 8b08349

Please sign in to comment.