Skip to content

Commit

Permalink
Send message to correct channels
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Apr 22, 2024
1 parent fa41868 commit 59c1d9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/alarm-slack-notifications/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export const handler = async (event) => {
Detail: JSON.stringify({
username: "Amazon CloudWatch Alarms",
icon_emoji: ":ops-cloudwatch-alarm:",
// channel: channel(event),
channel: "CHZTAGBM2", // temp
channel: channel(event),

Check failure on line 102 in src/alarm-slack-notifications/index.mjs

View workflow job for this annotation

GitHub Actions / check-javascript / check-javascript

'channel' is not defined

Check failure on line 102 in src/alarm-slack-notifications/index.mjs

View workflow job for this annotation

GitHub Actions / check-project-std / check-javascript / check-javascript

'channel' is not defined
attachments: [
{
color: colorValue(event),
Expand All @@ -125,8 +124,7 @@ export const handler = async (event) => {
Detail: JSON.stringify({
username: "Amazon CloudWatch Alarms",
icon_emoji: ":ops-cloudwatch-alarm:",
// channel: "G2QHC2N7K", // #ops-warn
channel: "CHZTAGBM2", // temp
channel: "G2QHC2N7K", // #ops-warn
text: [
"The following CloudWatch alarm event was not handled successfully:",
`\n\n*Event ID:* \`${event.id}\`\n\n`,
Expand Down

0 comments on commit 59c1d9c

Please sign in to comment.