後台介面目前只能針對一各檔案去開放存取 , 如果要大量 , 需使用 Policy 政策來使用
官方文件有說明 : https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"AddPerm",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::examplebucket
/*"]
}
]
}
沒有留言:
張貼留言