Skip to content

Commit

Permalink
fix: script to enable bucket versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
tshuli committed Sep 13, 2023
1 parent 950da5a commit a0904d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions init-localstack.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ awslocal s3 mb s3://$STATIC_ASSETS_S3_BUCKET

# Buckets for virus scanner
# Set to versioning enabled
awslocal s3 mb s3://$VIRUS_SCANNER_QUARANTINE_S3_BUCKET --versioning-configuration Status=Enabled
awslocal s3 mb s3://$VIRUS_SCANNER_CLEAN_S3_BUCKET --versioning-configuration Status=Enabled
awslocal s3 mb s3://$VIRUS_SCANNER_QUARANTINE_S3_BUCKET
awslocal s3api put-bucket-versioning --bucket $VIRUS_SCANNER_QUARANTINE_S3_BUCKET --versioning-configuration Status=Enabled
awslocal s3 mb s3://$VIRUS_SCANNER_CLEAN_S3_BUCKET


set +x

0 comments on commit a0904d2

Please sign in to comment.