Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(iac): correctly grab secret string for fusionauth_client_id in notification service (#406)

Will Hutchinson05209c41c0ce
diff --git a/infra/stacks/notification-service/index.ts b/infra/stacks/notification-service/index.ts
index b2b2282e12..fab4fed0f7 100644
--- a/infra/stacks/notification-service/index.ts
+++ b/infra/stacks/notification-service/index.ts
@@ -28,7 +28,13 @@ const password = aws.secretsmanager
})
.apply((secret) => secret.secretString);
-const AUDIENCE = config.require(`fusionauth_client_id`);
+const fusionauthClientIdSecretKey = config.require(`fusionauth_client_id`);
+const AUDIENCE = aws.secretsmanager
+ .getSecretVersionOutput({
+ secretId: fusionauthClientIdSecretKey,
+ })
+ .apply((secret) => secret.secretString);
+
const ISSUER = config.require(`fusionauth_issuer`);
const appleTeamId = config.require(`apple_team_id`);