-
Notifications
You must be signed in to change notification settings - Fork 0
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
chithrak
committed
Jan 24, 2024
1 parent
0aad75e
commit 579d4d3
Showing
1 changed file
with
18 additions
and
5 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,11 +1,24 @@ | ||
# terraform-route53-backups | ||
Backup aws route53 hosted zones and health checks to s3 bucket | ||
Backup aws route53 hosted zones and health checks to s3 bucket. | ||
|
||
The module does the following | ||
* Creates an s3 bucket with a life-cycle policy to delete objects after 14 days. | ||
* Uploads a lambda function to the specific region | ||
* Creates a cloudwatch event that triggers the lambda to run every 24 hours(1440 minutes). | ||
|
||
### How to use | ||
Add the below to your terraform file | ||
|
||
``` | ||
module "backup-route53" { | ||
source = "git::ssh://username@example.com/storage.git" | ||
source = "git@github.com:AcroMedia/terraform-route53-backups.git?ref=main" | ||
providers = { | ||
aws.src = aws.caask_ca1 | ||
aws.src = aws.src #change-me | ||
} | ||
bucket = "caask-route53-backups" | ||
retention_period = 14 | ||
bucket = "acc-name-route53-backups" #change-me | ||
retention_period = 14 #change-me | ||
region = us-east-1 #change-me | ||
} | ||
``` | ||
|
||
|