-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59e3eff
commit 5d0a901
Showing
7 changed files
with
81 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/.direnv | ||
/.direnv | ||
/dist | ||
/package.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[MAIN] | ||
max-line-length=120 | ||
max-line-length=120 | ||
max-args=7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# rds-backup-lambda | ||
Small lambda function to copy automated RDS snapshots into another region | ||
|
||
Small AWS Lambda function to copy automated RDS snapshots into another region. | ||
|
||
## Installation | ||
|
||
Create a AWS lambda function in your prefered region. Add the following environment configuration: | ||
|
||
|
||
``` | ||
# AWS account ID | ||
ACCOUNT = "1234567890" | ||
# Region where the automated snapshots are located | ||
SOURCE_REGION = "eu-west-1" | ||
# Region where the automated snapshots should be copied to | ||
TARGET_REGION = "eu-central-1" | ||
# Comma separated list of RDS instances which snapshots should be copied | ||
SOURCE_DB = "my-rds-instance" | ||
# Comma-separated list of RDS clusters which snapshots should be copied | ||
SOURCE_CLUSTER = "my-aurora-cluster" | ||
# KMS Key in target region to use for snapshot encryption | ||
DEST_KMS = "arn:aws:kms:eu-central-1:1234567890:key/abc123" | ||
# Number of snapshots to keep | ||
KEEP_SNAPSHOTS = 10 | ||
``` | ||
|
||
Create a `package.zip` for uploading as code: | ||
|
||
``` | ||
make build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
boto3 | ||
botocore | ||
environs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters