aws 머신 학습에서 읽기 및 쓰기 액세스를 허용하는 S3 버킷 정책을 만들 수 있습니까? 나는 양동이 정책 아래에서 시도했지만 작동하지 않습니다.aws S3 Bucket aws 머신 학습에서 읽기/쓰기 액세스 허용 정책
버킷 정책 :
{
"Version": "2008-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "machinelearning.amazonaws.com"
},
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::cxra/*"
},
{
"Effect": "Allow",
"Principal": {
"Service": "machinelearning.amazonaws.com"
},
"Action": "s3:PutObjectAcl",
"Resource": "arn:aws:s3:::cxra/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
},
{
"Effect": "Allow",
"Principal": {
"Service": "machinelearning.amazonaws.com"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::cxra"
},
{
"Effect": "Allow",
"Principal": {
"Service": "machinelearning.amazonaws.com"
},
"Action": [
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::cxra"
}
]
}
리소스의 2 위치에서 arn : aws : s3 ::: cxra를 arn : aws : s3 ::: cxra/*로 변경 한 다음 – error2007s