Granting permissions

We need to edit the policy of the aml.packt bucket. To do so, we have to perform the following steps:

  1. Click on your bucket.
  2. Select the Permissions tab.
  1. In the dropdown, select Bucket Policy as shown in the following screenshot. This will open an editor:
  1. Paste in the following JSON file. Make sure to replace {YOUR_BUCKET_NAME} with the name of your bucket and save:
        {          "Version": "2012-10-17",          "Statement": [            {              "Sid": "AmazonML_s3:ListBucket",              "Effect": "Allow",              "Principal": {                "Service": "machinelearning.amazonaws.com"              },              "Action": "s3:ListBucket",              "Resource": "arn:aws:s3:::{YOUR_BUCKET_NAME}",              "Condition": { "StringLike": ...

Get Effective Amazon Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.