Skip to content

Instantly share code, notes, and snippets.

@nachmore
Created July 15, 2021 15:15
Show Gist options
  • Save nachmore/8fac33c5db48034d4ed935afe5233b2a to your computer and use it in GitHub Desktop.
Save nachmore/8fac33c5db48034d4ed935afe5233b2a to your computer and use it in GitHub Desktop.
Sample SNS message sent from AWS Cost Anomy
{
"Records": [
{
"EventSource": "aws:sns",
"EventVersion": "1.0",
"EventSubscriptionArn": "arn:aws:sns:us-east-1:[account-id]:CostAnomalyQueue:f6df06cb-a1be-48be-b560-85876b7821b2",
"Sns": {
"Type": "Notification",
"MessageId": "31236cc0-d7be-55ec-a6f7-35aaf7b15d43",
"TopicArn": "arn:aws:sns:us-east-1:[account-id]:CostAnomalyQueue",
"Subject": "AWS Cost Management: Cost anomaly detected on 2021-07-15T11:36:40.582Z",
"Message": "{\"accountId\":\"[account-id]\",\"anomalyStartDate\":\"2021-07-14T00:00:00Z\",\"anomalyEndDate\":\"2021-07-14T00:00:00Z\",\"anomalyId\":\"a8d693b9-3dbf-440f-af09-00c749032019\",\"dimensionalValue\":\"Amazon Elastic Block Store\",\"monitorArn\":\"arn:aws:ce::[account-id]:anomalymonitor/c3e714cc-50f7-4fe3-b9a4-62b2c86d3d6f\",\"anomalyScore\":{\"maxScore\":0.74,\"currentScore\":0.74},\"impact\":{\"maxImpact\":48.22,\"totalImpact\":48.22},\"rootCauses\":[{\"service\":\"Amazon Elastic Block Store\",\"region\":\"us-east-1\",\"linkedAccount\":\"[account-id]\",\"usageType\":\"EBS:VolumeUsage.piops\"}],\"anomalyDetailsLink\":\"https://console.aws.amazon.com/cost-management/home#/anomaly-detection/monitors/c3e714cc-50f7-4fe3-b9a4-62b2c86d3d6f/anomalies/a8d693b9-3dbf-440f-af09-00c749032019\"}",
"Timestamp": "2021-07-15T11:36:47.344Z",
"SignatureVersion": "1",
"Signature": "NTCFE9JhZf8C8N6by+OyShIa/7gymFuOVdK/M+C5eRNihiFRfaE0Dp/C0v4SBHGmXwW0JvsAjeLsuk8KpLcddQEth1ouqgad0yIpjkiIwPi7VJO7zfQ0vc4GfQCeVlnQtgO1bgkPbsxxtVJOhv6koMF2WUS5N54ita/aLtlSk5ZddmhcG1Vr9RVa3ncNUFrW4P2ZgON1GIunyZdo3Yd1yPKDY+ubEnwTBEU8iguhIizzrPlOVb4IoQ4ZuZBHPswxf6mAB4uApdlde2M+qoXGel1EMZzJcetKmNYmBME0KYUnx3vdpyG8LpOw7H9aiL16v9ZDCdyreh6USq+nTPWWwg==",
"SigningCertUrl": "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-010g521c4721134cd94fdb90bd93180a.pem",
"UnsubscribeUrl": "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:[account-id]:CostAnomalyQueue:f6df06cb-a1be-48be-b560-85876b7821b2",
"MessageAttributes": {}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy