Deny access

Take a look at an example of how a resource-based policy can restrict access.

IAM resource policy to deny access

Let’s see an example of how a resource-based policy can restrict access. In this example, the S3 bucket has a bucket policy, which is a resource-based policy to deny access for all users except for a specific one.

Get hands-on with 1400+ tech skills courses.