Skip to content

Commit c686893

Browse files
committed
CCM-12323: Adding S3 restore testing plan
1 parent a37dc44 commit c686893

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
resource "aws_backup_restore_testing_selection" "backup_restore_testing_selection_s3" {
2+
count = var.backup_plan_config_s3.enable ? 1 : 0
3+
name = "${local.csi_underscore}_s3_backup_restore"
4+
restore_testing_plan_name = "${local.csi_underscore}_restore_testing_plan"
5+
protected_resource_type = "S3"
6+
iam_role_arn = aws_iam_role.backup.arn
7+
protected_resource_conditions {
8+
string_equals {
9+
key = "aws:ResourceTag/${var.backup_plan_config_s3.selection_tag}"
10+
value = "True"
11+
}
12+
}
13+
14+
restore_metadata_overrides = {
15+
EncryptionType = "SSE_KMS"
16+
KmsKey = aws_kms_alias.backup_key.arn
17+
}
18+
}

0 commit comments

Comments
 (0)