Skip to content

Commit 1d715a2

Browse files
committed
NRL-853 split back into different plans for s3 and ddb
1 parent ef6a542 commit 1d715a2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

terraform/account-wide-infrastructure/dev/aws-backups.tf

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module "source" {
150150

151151
backup_plan_config = {
152152
"compliance_resource_types" : [
153-
"S3", "DynamoDB"
153+
"S3"
154154
],
155155
"rules" : [
156156
{
@@ -166,4 +166,24 @@ module "source" {
166166
],
167167
"selection_tag" : "NHSE-Enable-Backup"
168168
}
169+
170+
backup_plan_config_dynamodb = {
171+
"compliance_resource_types" : [
172+
"DynamoDB"
173+
],
174+
"enable" : true,
175+
"rules" : [
176+
{
177+
"copy_action" : {
178+
"delete_after" : 4
179+
},
180+
"lifecycle" : {
181+
"delete_after" : 2
182+
},
183+
"name" : "daily_kept_for_2_days",
184+
"schedule" : "cron(0 0 * * ? *)"
185+
}
186+
],
187+
"selection_tag" : "NHSE-Enable-Backup"
188+
}
169189
}

0 commit comments

Comments
 (0)