Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon s3 使用授权或屏蔽ACL进行红移卸载_Amazon S3_Amazon Redshift - Fatal编程技术网

Amazon s3 使用授权或屏蔽ACL进行红移卸载

Amazon s3 使用授权或屏蔽ACL进行红移卸载,amazon-s3,amazon-redshift,Amazon S3,Amazon Redshift,是否有一种方法可以从redshift执行卸载语句,并传递固定的ACLbucket owner full control?我最终得到了一个单独的bash脚本,它在redshift创建的文件上添加了正确的ACL S3_BUCKET=“bla” 卸载\u FOLDER=“path/to/bla” 对于$中的i(aws s3 ls s3://${s3_BUCKET}/${UNLOAD_FOLDER}/--recursive | awk'{print$4}'); 不要重复$i; aws s3api放置对象

是否有一种方法可以从redshift执行卸载语句,并传递固定的ACL
bucket owner full control

我最终得到了一个单独的bash脚本,它在redshift创建的文件上添加了正确的ACL

S3_BUCKET=“bla”
卸载\u FOLDER=“path/to/bla”
对于$中的i(aws s3 ls s3://${s3_BUCKET}/${UNLOAD_FOLDER}/--recursive | awk'{print$4}');
不要重复$i;
aws s3api放置对象acl——bucket%s——region us-east-1——key$i——acl bucket owner完全控制;
完成
完成