The designers group can read S3. Now Rosa needs to upload pictures to monster-photos-2kzhjv, and only there: never into the shop's own bucket, monster-market-2kzhjv.
A draft policy is in ~/upload.json. It allows uploads to every bucket.
- Open it with
nano ~/upload.json. ChangeResourceso it covers only the objects inmonster-photos-2kzhjv. - Save your edit, then save the policy in the account as
PhotosUpload. If you get it wrong, the lesson shows how to delete it and try again. - Attach it to the
designersgroup. Your own policy's ARN has the account id in it, notaws.
Objectives
PhotosUploadallows uploads tomonster-photos-2kzhjvonly.- Rosa can upload to the photos bucket, and not to the shop's bucket.