Thêm policy cho bucket

  1. In S3 console, select logging-workshop bucket.

CreateBucket

  1. Select Permissions tab.

CreateBucket

  1. for Bucket policy, select Edit.

CreateBucket

  1. Insert:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": "*",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::logging-workshop/*"
    }
  ]
}

CreateBucket

  1. Chọn Save changes

CreateBucket

  1. Confirm updated successfully

CreateBucket