Skip to content

Commit

Permalink
refactor: force strings for api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Dec 13, 2024
1 parent 94385ad commit 517dd7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/_infra/src/analytics/edge.analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export class EdgeAnalytics extends Stack {
[Env.Analytics.CacheBucket]: `s3://${cacheBucket.bucketName}`,
[Env.Analytics.CloudFrontSourceBucket]: `s3://${logBucket.bucketName}`,
[Env.Analytics.MaxRecords]: String(24 * 7 * 4),
[Env.Analytics.ElasticId]: Env.get(Env.Analytics.ElasticId),
[Env.Analytics.ElasticApiKey]: Env.get(Env.Analytics.ElasticApiKey),
[Env.Analytics.ElasticId]: Env.get(Env.Analytics.ElasticId) ?? '',
[Env.Analytics.ElasticApiKey]: Env.get(Env.Analytics.ElasticApiKey) ?? '',
AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1',
},
logRetention: RetentionDays.ONE_MONTH,
Expand All @@ -78,7 +78,7 @@ export class EdgeAnalytics extends Stack {
logBucket.grantRead(v2Lambda);

// Run this lambda function every hour
new Rule(this, 'AnalyticRule', { schedule: Schedule.rate(Duration.hours(1)) }).addTarget(
new Rule(this, 'AnalyticV2Rule', { schedule: Schedule.rate(Duration.hours(1)) }).addTarget(
new LambdaFunction(v2Lambda),
);
}
Expand Down

0 comments on commit 517dd7b

Please sign in to comment.