5
redshiftからアンロードステートメントを実行して、缶詰のACL bucket-owner-full-control
を渡す方法はありますか?Redshift Unload with GrantまたはCanned ACL
redshiftからアンロードステートメントを実行して、缶詰のACL bucket-owner-full-control
を渡す方法はありますか?Redshift Unload with GrantまたはCanned ACL
Redshiftで作成されたファイルに適切なACLを追加する別のbashスクリプトが作成されました。
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