Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack alarm forwarder #67

Merged
merged 4 commits into from
Mar 1, 2023
Merged

Slack alarm forwarder #67

merged 4 commits into from
Mar 1, 2023

Conversation

andersrebner
Copy link
Collaborator

@andersrebner andersrebner commented Jan 17, 2023

closes #39

  • Lambda slackAlarmForwarder sender alarminfo til en slack-kanal (#kompetansekartlegging-aws-alarms)
  • slackAlarmForwarder subscribes til ${ENV}-system-admin-topic
  • Secret slack_webhook_url templates

Man må manuelt legge inn verdi til secret-en slack_webhook_url etter første deploy til dev og prod.

Årsaken til at kontekst-variabel ikke brukes til å sette verdi er at secret-verdier vises i cdk outputs, ref aws/aws-cdk#5810 (comment), som kan være dumt når vi etterhvert deployer via GitHub Actions. Tenker at det også er greit å unngå enda en kontekstvariabel, spesielt siden denne kun hadde vært nødvendig å bruke én gang per miljø for å gi verdi til secret-en. I tillegg unngår vi at varsler fra sandboxes havner i slack-kanalen.

@andersrebner andersrebner requested a review from krisstam January 17, 2023 13:55
Copy link
Contributor

@krisstam krisstam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser greit ut dette 👍

@andersrebner andersrebner merged commit 2a968f1 into main Mar 1, 2023
@andersrebner andersrebner deleted the slack-alarm-forwarder branch March 13, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lage en Cloudwatch-alarm som igjen trigger epost-utsending dersom funksjonen createUserformBatch timer ut
2 participants