0

Here's the scenario, after AWS Backup completes backup cluster aurora RDS, it will send 1 event message to SNS topic. Finally, I'll use lambda to get cluster information.

AWS Backup job completed -> Event message -> SNS topic -> trigger lambda

The thing is that I cannot find any information related to cluster ID ( tried with EventBridge ). I've tried to use Event Subscription ( RDS), but, it won't send any information while I perform AWS Backup.

Please let me know if you have any other ideas, thanks in advance

  • Are you logging the entire `event` object that is passed into Lambda? If so, can you include that log in your question? – Mark B Jun 21 '22 at 16:26
  • That was the plan.. But I need to try send the event to SNS and then check event via email notification first before go to Lambda step –  Jun 22 '22 at 01:41
  • So at this point you are only sending the event to SNS? Then post the email content in your question. Please provide all the details you have in your question. – Mark B Jun 22 '22 at 11:47
  • Okay, I got the information I needed from ResourceArn (SNS event). Here's the output: { "Type" : "Notification", "MessageId" : "3d405e4b-e9cd-5d19-a412-0564d3b5bc41" "TopicArn" : "arn:aws:sns:ap-southeast-2:669459364263:notifi-test", "Message" : "{ ... \"source\":\"aws.backup\",\"account\":\"******\,\"region\":\"ap-southeast-2\",\"resources\":[\***\"],\"detail\":{\"resourceType\":\"Aurora\",\"resourceArn\":\"arn:aws:rds:ap-southeast-2:669459364263:cluster:*** } –  Jun 28 '22 at 03:28
  • I'll have to get the cluster id from "ResourceArn: "string" based on (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/backup.html#Backup.Client.describe_backup_job) Do you have any thoughts? –  Jun 28 '22 at 03:30

0 Answers0