Skip to content

Commit

Permalink
chore: added env variables on daemon config
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Jun 6, 2024
1 parent 6adf49a commit 3c23ce0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions packages/common/src/utils/alerting.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@
import { SendMessageCommand, SQSClient } from '@aws-sdk/client-sqs';
import { Severity } from '../types';
import { Logger } from 'winston';
import * as indexUtils from './index.utils';
import { assertEnvVariablesExistence } from './index.utils';

console.log('index utils: ', indexUtils);

assertEnvVariablesExistence([
'NETWORK',
'APPLICATION_NAME',
'ACCOUNT_ID',
'ALERT_MANAGER_REGION',
'ALERT_MANAGER_TOPIC',
]);

/**
* Adds a message to the SQS alerting queue
Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const requiredEnvs = [
'ACCOUNT_ID',
'ALERT_MANAGER_TOPIC',
'ALERT_MANAGER_REGION',
'APPLICATION_NAME',
];


export const checkEnvVariables = () => {
const missingEnv = requiredEnvs.filter(envVar => process.env[envVar] === undefined);

Expand Down

0 comments on commit 3c23ce0

Please sign in to comment.