Skip to content

Commit

Permalink
use published backup module
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Aug 27, 2024
1 parent bf4290d commit 9a0c953
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions terraform/032-db-backup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,14 @@ resource "aws_cloudwatch_event_target" "backup_event_target" {
module "aws_backup" {
count = var.enable_aws_backup ? 1 : 0

source = "github.com/silinternational/terraform-modules//aws/backup/rds?ref=8.8.0"
app_name = var.app_name
app_env = var.app_env
source_arns = [data.aws_db_instance.this.db_instance_arn]
backup_cron_schedule = var.aws_backup_cron_schedule
notification_events = var.aws_backup_notification_events
source = "silinternational/backup/aws"
version = "0.1.0"

app_name = var.app_name
app_env = var.app_env
source_arns = [data.aws_db_instance.this.db_instance_arn]
backup_schedule = "cron(${var.aws_backup_cron_schedule})"
notification_events = var.aws_backup_notification_events
}

data "aws_db_instance" "this" {
Expand Down

0 comments on commit 9a0c953

Please sign in to comment.