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: add in missing env var (#1132)

Will Hutchinsoneb5fc797b0a6
diff --git a/infra/stacks/authentication-service/index.ts b/infra/stacks/authentication-service/index.ts
index 770cf6febd..8fcd6b83d9 100644
--- a/infra/stacks/authentication-service/index.ts
+++ b/infra/stacks/authentication-service/index.ts
@@ -96,6 +96,9 @@ const googleClientSecretKeyArn: pulumi.Output<string> = aws.secretsmanager
.apply((secret) => secret.arn);
const STRIPE_PRICE_ID_KEY = config.require(`stripe_price_id`);
+const STRIPE_PREMIUM_PRICE_ID = aws.secretsmanager
+ .getSecretVersionOutput({ secretId: STRIPE_PRICE_ID_KEY })
+ .apply((secret) => secret.arn);
const stripePriceIdArn: pulumi.Output<string> = aws.secretsmanager
.getSecretVersionOutput({ secretId: STRIPE_PRICE_ID_KEY })
@@ -284,6 +287,12 @@ const service = new AuthenticationService('authentication-service', {
name: 'STRIPE_PRICE_ID',
value: pulumi.interpolate`${STRIPE_PRICE_ID_KEY}`,
},
+ {
+ // NOTE: this is the fetched secret value of the STRIPE_PRICE_ID
+ // from above. Will unify these in a separate PR.
+ name: 'STRIPE_PREMIUM_PRICE_ID',
+ value: pulumi.interpolate`${STRIPE_PREMIUM_PRICE_ID}`,
+ },
],
});