Skip to content

Commit

Permalink
Removing stale secret from state -- will readd if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Sep 4, 2024
1 parent 16885bc commit cc7084e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions management-account/terraform/secrets-manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,18 @@ data "aws_secretsmanager_secret_version" "azure_entraid_oidc" {

# EntraID: Secrets for User Sync Lambda -- secrets values to be stored in a set of key-value pairs comprising tenant, application id and application secret

resource "aws_secretsmanager_secret" "azure_entraid_group_sync" {
name = "azure_entraid_oidc"
description = "Azure tenant ID, client ID and secret for the Ministry of Justice owned webapp for group membership syncing"
removed {
from = aws_secretsmanager_secret.azure_entraid_group_sync

lifecycle {
destroy = false
}
}

data "aws_secretsmanager_secret_version" "azure_entraid_group_sync" {
secret_id = aws_secretsmanager_secret.azure_entraid_group_sync.id
removed {
from = aws_secretsmanager_secret_version.azure_entraid_group_sync

lifecycle {
destroy = false
}
}

0 comments on commit cc7084e

Please sign in to comment.