Skip to content

Commit b617f70

Browse files
committed
Added event.aurora.json for convenience and updated README.md accordingly.
1 parent 07f8fec commit b617f70

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This repository creates the automation necessary to export Amazon RDS snapshots
1414
* `npm install`
1515
* `npm run cdk bootstrap`
1616
* `npm run cdk deploy`
17-
5. Open up your `<dbName>-rds-snapshot-exporter` function in the [AWS Lambda](https://console.aws.amazon.com/lambda/home) console and configure a test event using the contents of [$/event.json](./event.json) as a template.
17+
5. Open up your `<dbName>-rds-snapshot-exporter` function in the [AWS Lambda](https://console.aws.amazon.com/lambda/home) console and configure a test event using the contents of [$/event.json](./event.json) OR [$/event.aurora.json](./event.aurora.json) as a template, depending on whether or not you're using Amazon Aurora.
1818
* **NOTE:** The example content is a *subset* of an SNS event notification containing the minimum valid event data necessary to successfully trigger the Lambda function's execution. You should modify the `<SNAPSHOT_NAME>` value within the `Message` key to match an existing RDS snapshot (e.g. `rds:<dbName>-YYYY-MM-DD-hh-mm`). You may also need to modify the `MessageId` if you are attempting to export the same snapshot more than once.
1919
6. Click the **Test** button to start an export.
2020

event.aurora.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"Records": [
3+
{
4+
"EventSource": "aws:sns",
5+
"Sns": {
6+
"Type": "Notification",
7+
"MessageId": "00000000-0000-0000-0000-000000000000",
8+
"Message": "{\"Event Source\":\"db-cluster-snapshot\",\"Source ID\":\"<SNAPSHOT_NAME>\",\"Event ID\":\"http://docs.amazonwebservices.com/AmazonRDS/latest/UserGuide/USER_Events.html#RDS-EVENT-0169\"}"
9+
}
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)