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

Fix "Error parsing AWS event" message #206

Open
sylviamclaughlin opened this issue Jun 29, 2023 · 0 comments
Open

Fix "Error parsing AWS event" message #206

sylviamclaughlin opened this issue Jun 29, 2023 · 0 comments
Assignees

Comments

@sylviamclaughlin
Copy link
Contributor

Sometimes we get the following messages in the SRE bot:

Error parsing AWS event:

{"text":"🟥 GC Forms - Formulaires GC (https://forms-formulaires.alpha.canada.ca/) is **down** : [https://github.com/cds-snc/status-statut/issues/159"}](https://github.com/cds-snc/status-statut/issues/159%22%7D)

or

Error parsing AWS event:
{'Type': 'Notification', 'MessageId': '0da238f6-da6c-5214-96e1-635d27a9b79b', 'TopicArn': 'arn:aws:sns:ca-central-1:017790921725:test-sre-bot', 'Subject': 'AWS Budgets: Test Budget has exceeded your alert threshold', 'Message': '{"version":"0","id":"7bf73129-1428-4cd3-a780-95db273d1602","detail-type":"AWS Health Abuse Event","source":"aws.health","account":"123456789012","time":"2018-08-01T06:27:57Z","region":"global","resources":["arn:aws:ec2:us-east-1:123456789012:instance/i-abcd1111","arn:aws:ec2:us-east-1:123456789012:instance/i-abcd2222"],"detail":{"eventArn":"arn:aws:health:global::event/AWS_ABUSE_DOS_REPORT_92387492375_4498_2018_08_01_02_33_00","service":"ABUSE","eventTypeCode":"AWS_ABUSE_DOS_REPORT","eventTypeCategory":"issue","startTime":"Wed, 01 Aug 2018 06:27:57 GMT","eventDescription":[{"language":"en_US","latestDescription":"Denial of Service (DOS) attack has been reported to have been caused by AWS resources in your account."}],"affectedEntities":[{"entityValue":"arn:aws:ec2:us-east-1:123456789012:instance/i-abcd1111"},{"entityValue":"arn:aws:ec2:us-east-1:123456789012:instance/i-abcd2222"}]}}', 'Timestamp': '2022-09-26T19:20:37.147Z', 'SignatureVersion': '1', 'Signature': 'HLsCTKHEC2FXGe6LFkV/JGD7k/apzJZD42R8ph4AzcD9NcrxZyjINTyPFe1zMtg3kcGSge2J3MqFcTTyQJtkRrKZZftIVZRflwWKu4OLHt1atHSOavI8n7Qh3bRtwR5C3mezhtu6oWbfEdTXAuyz4AWcZ0L9dxE4B3bOMS302ViQA3hIfjSlGLRr+j/Ra7+IbzY35QUJLxtVcmcAAw/ByuyXeDRy+6qhJtKndOTeMBLTKAQlIOPubyJP1Q2BWo0spREmIESnPtB14c5k+6LWxa/srPjfOWu66ICUNnydKnvf5EuIlpooycLldttvDtwmD2NZt6kQr2FJhkqARyr/Ng==', 'SigningCertURL': 'https://sns.ca-central-1.amazonaws.com/SimpleNotificationService-56e67fcb41f6fec09b0196692625d385.pem', 'UnsubscribeURL': 'https://sns.ca-central-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:ca-central-1:017790921725:test-sre-bot:4636a013-5224-4207-91b2-d6d7c7ab7ea7'}

Look if it is possible to make this more user friendly or at least parse out the messages.

@sylviamclaughlin sylviamclaughlin self-assigned this Jun 29, 2023
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

No branches or pull requests

1 participant