官方文档:
https://docs.amazonaws.cn/elasticloadbalancing/latest/application/enable-access-logging.html

原先表述Policy
{
"Version": "2012-10-17",
"Statement": [

{
  "Effect": "Allow",
  "Principal": {
    "AWS": "arn:aws:iam::elb-account-id:root"
  },
  "Action": "s3:PutObject",
  "Resource": "arn:aws:s3:::s3-bucket-name/prefix/AWSLogs/elb-account-id/*"
}

]

修改的地方:
{
"Version": "2012-10-17",
"Statement": [

{
  "Effect": "Allow",
  "Principal": {
    "AWS": "arn:aws-cn:iam::elb-account-id:root"
  },
  "Action": "s3:PutObject",
  "Resource": "arn:aws-cn:s3:::s3-bucket-name/prefix/AWSLogs/your-account-id/*"
}

]

}

标签: none

评论已关闭