From 6a787841725262bd2b76a60f74c0221679e00cd8 Mon Sep 17 00:00:00 2001 From: Jacob Woffenden Date: Wed, 18 Oct 2023 10:00:54 +0000 Subject: [PATCH] Add Open Metadata Entra ID secrets Signed-off-by: Jacob Woffenden --- .../data-platform-apps-and-tools/secrets.tf | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/terraform/environments/data-platform-apps-and-tools/secrets.tf b/terraform/environments/data-platform-apps-and-tools/secrets.tf index a6a94d9c098..8b65f96ff35 100644 --- a/terraform/environments/data-platform-apps-and-tools/secrets.tf +++ b/terraform/environments/data-platform-apps-and-tools/secrets.tf @@ -1 +1,17 @@ -#### This file can be used to store secrets specific to the member account #### +/* + +These have been created in code as we do not have permission to "secretsmanager:CreateSecret" + +*/ + +resource "aws_secretsmanager_secret" "openmetadata_entra_id_client_id" { + count = terraform.workspace == "data-platform-apps-and-tools-production" ? 1 : 0 + + name = "openmetadata/entra-id/client-id" +} + +resource "aws_secretsmanager_secret" "openmetadata_entra_id_tenant_id" { + count = terraform.workspace == "data-platform-apps-and-tools-production" ? 1 : 0 + + name = "openmetadata/entra-id/tenant-id" +} \ No newline at end of file