2015-12-16 18 views

risposta

0

Ho finito per avere uno script bash separato che aggiunge ACL corretto sui file creati da Redshift.

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