Sam is the new intern, in the interns group, which has AmazonS3FullAccess. The others need that. Sam must still upload to the shop's bucket, monster-market-qsus4a, but he must never delete anything in it.
A policy is ready in ~/no-delete.json. It denies deleting objects, but the bucket name is a placeholder.
- Put the shop's bucket name in it with
nano ~/no-delete.json. - Save it in the account as
NoDeleteMarket, and attach it to the usersam. - Prove it, as Sam:
sh
aws s3 rm s3://monster-market-qsus4a/menu.html --profile samaws s3 rm deletes an object. As Sam, it must fail with AccessDenied.
Objectives
- Sam can't delete in the shop's bucket, and can still upload there.
- Sam tried to delete, and was refused.