技术代码类

AWS CN ELB S3 LOG

By ronz 31 Views 3 MIN READ 0 Comments

官方文档:
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/*"
}

]

}

本文由 ronz 原创

采用 CC BY-NC-SA 4.0 协议进行许可

转载请注明出处:https://upsilon20.com/archives/27/

TAGS: No tags

YOU MAY ALSO LIKE

  • Nothing related yet, explore something else.

0 COMMENTS

苏ICP备2024088959号-2 苏公网安备32060202001138