From 8bcbc28f3204cb74423d6ae885982889cc556404 Mon Sep 17 00:00:00 2001 From: BasilMawejje Date: Tue, 12 Oct 2021 22:37:05 +0300 Subject: [PATCH] Add s3:PutLifecycleConfiguration statement to policy Need to fix TODO --- lib/tasks/shf_aws.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/shf_aws.rake b/lib/tasks/shf_aws.rake index b5e3900da..67652be1e 100644 --- a/lib/tasks/shf_aws.rake +++ b/lib/tasks/shf_aws.rake @@ -143,6 +143,8 @@ namespace :shf do storage_rules = [{days: 90, storage_class: 'GLACIER'}, {days: 450, storage_class: 'DEEP_ARCHIVE'}] ActivityLogger.open(LogfileNamer.name_for(LOGFILENAME), LOG_FACILITY, 'Add bucket lifecycle configuration') do |log| + # TODO: Fix error below + # Aws::S3::Errors::MalformedXML: The XML you provided was not well-formed or did not validate against our published schema aws_client.put_bucket_lifecycle_configuration({ bucket: aws_s3_backup_bucket_name, lifecycle_configuration: {