Skip to content

Commit

Permalink
Add s3:PutLifecycleConfiguration statement to policy
Browse files Browse the repository at this point in the history
Need to fix TODO
  • Loading branch information
BasilMawejje committed Oct 12, 2021
1 parent e822de8 commit 8bcbc28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/shf_aws.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 8bcbc28

Please sign in to comment.