-------------------------------------------------------------------
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::●●●●●●●●●●:root"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::s3-logs1/*"
},
{
"Effect": "Allow",
"Principal": {
"Service": "delivery.logs.amazonaws.com"
},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::s3-logs1/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
},
{
"Effect": "Allow",
"Principal": {
"Service": "delivery.logs.amazonaws.com"
},
"Action": "s3:GetBucketAcl",
"Resource": "arn:aws:s3:::s3-logs1"
}
]
}
---------------------------------------------------------------------
3)以下のログが出力される。
->アクセスログも確認できた
アクセスログ:
0 件のコメント:
コメントを投稿