2015-12-16 35 views

cevap

0

Redshift tarafından oluşturulan dosyalara uygun ACL ekleyen ayrı bir bash betiğine sahip oldum.

S3_BUCKET="bla" 
UNLOAD_FOLDER="path/to/bla" 
for i in $(aws s3 ls s3://${S3_BUCKET}/${UNLOAD_FOLDER}/ --recursive | awk '{ print $4}'); 
    do echo $i ; 
     aws s3api put-object-acl --bucket %s --region us-east-1 --key $i --acl bucket-owner-full-control; 
    done 
done