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(analytics): missing meta access token (#2373)

dev-rbe8eef49d3959
diff --git a/infra/stacks/authentication-service/Pulumi.dev.yaml b/infra/stacks/authentication-service/Pulumi.dev.yaml
index a210351e1f..898a137a3d 100644
--- a/infra/stacks/authentication-service/Pulumi.dev.yaml
+++ b/infra/stacks/authentication-service/Pulumi.dev.yaml
@@ -23,6 +23,7 @@ config:
authentication-service:ga_measurement_id: G-52HPEL3FTV
authentication-service:ga_api_secret: ga-api-secret
authentication-service:meta_pixel_id: 639142540393286
+ authentication-service:meta_access_token: meta-access-token
authentication-service:posthog_host: https://us.i.posthog.com
authentication-service:posthog_api_key: posthog-api-key
authentication-service:stripe_price_id_haiku: stripe-price-id-haiku-dev
diff --git a/infra/stacks/authentication-service/Pulumi.prod.yaml b/infra/stacks/authentication-service/Pulumi.prod.yaml
index 137479ba63..14628539fa 100644
--- a/infra/stacks/authentication-service/Pulumi.prod.yaml
+++ b/infra/stacks/authentication-service/Pulumi.prod.yaml
@@ -23,6 +23,7 @@ config:
authentication-service:ga_measurement_id: G-52HPEL3FTV
authentication-service:ga_api_secret: ga-api-secret
authentication-service:meta_pixel_id: 639142540393286
+ authentication-service:meta_access_token: meta-access-token
authentication-service:posthog_host: https://us.i.posthog.com
authentication-service:posthog_api_key: posthog-api-key
authentication-service:stripe_price_id_haiku: stripe-price-id-haiku-prod
diff --git a/infra/stacks/authentication-service/index.ts b/infra/stacks/authentication-service/index.ts
index b692b71295..0c880a1f73 100644
--- a/infra/stacks/authentication-service/index.ts
+++ b/infra/stacks/authentication-service/index.ts
@@ -158,9 +158,9 @@ const GA_API_SECRET: pulumi.Output<string> = aws.secretsmanager
const META_PIXEL_ID = config.require('meta_pixel_id');
-// const META_ACCESS_TOKEN: pulumi.Output<string> = aws.secretsmanager
-// .getSecretVersionOutput({ secretId: config.require('meta_access_token') })
-// .apply((secret) => secret.secretString);
+const META_ACCESS_TOKEN: pulumi.Output<string> = aws.secretsmanager
+ .getSecretVersionOutput({ secretId: config.require('meta_access_token') })
+ .apply((secret) => secret.secretString);
const POSTHOG_HOST = config.require('posthog_host');
const POSTHOG_API_KEY: pulumi.Output<string> = aws.secretsmanager
@@ -369,6 +369,10 @@ const service = new AuthenticationService('authentication-service', {
name: 'GA_API_SECRET',
value: pulumi.interpolate`${GA_API_SECRET}`,
},
+ {
+ name: 'META_ACCESS_TOKEN',
+ value: pulumi.interpolate`${META_ACCESS_TOKEN}`,
+ },
{
name: 'META_PIXEL_ID',
value: META_PIXEL_ID,