Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

AWS SNS parsing

Chad R Knudtson _x6550_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 18, 2024

Eventbridge rule generates an SNS notification to Opsgenie.  The SNS native payload is parsed by Opsgenie to populate the descripton(json) field.  I need to be able to extract certain items from the description.  Her is the parsed description:

  • description {"version":"0","id":"2b45b81e-68d8-f630-912b-127bfe24d5c1","detail-type":"Backup Job State Change","source":"aws.backup","account":"xxxxxxxxxxx9","time":"2024-11-18T21:49:56Z","region":"us-east-2","resources":[],"detail":{"backupJobId":"6e4d996d-b61d-4c6d-9505-8fb092a0c1dc","backupSizeInBytes":"11290542080","backupVaultArn":"arn:aws:backup:us-east-2:xxxxxxxxxxx9:backup-vault:MyVault","backupVaultName":"MyVault","bytesTransferred":"805306368","creationDate":"2024-11-18T21:47:51.972Z","iamRoleArn":"arn:aws:iam::xxxxxxxxxxxxx9:role/service-role/AWSBackupDefaultServiceRole","resourceArn":"arn:aws:backup-gateway:us-east-2:xxxxxxxxxxxxx9:vm/vm-00032F9FDF21B73F7","resourceType":"VirtualMachine","state":"ABORTED","statusMessage":"Backup job was stopped by user.","completionDate":"2024-11-18T21:49:20.707770616Z","startBy":"2024-11-18T22:47:51.972Z","percentDone":7.0}}

Need to extract the backupJobId from the detail list.  I've tried using various different string processing.  None appeared to work.  Any help would be appreciated.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events