5
के साथ Redshift Unload redshift से एक अनलोड कथन करने और डिब्बाबंद ACL bucket-owner-full-control
पास करने का कोई तरीका है?अनुदान या डिब्बाबंद एसीएल
के साथ Redshift Unload redshift से एक अनलोड कथन करने और डिब्बाबंद ACL bucket-owner-full-control
पास करने का कोई तरीका है?अनुदान या डिब्बाबंद एसीएल
मैं एक अलग बैश स्क्रिप्ट प्राप्त कर रहा हूं जो 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