Using conditions

Learn how Conditions in IAM Policies allow more fine-grained filtering.

Using conditions in IAM policies

A Condition block allows more fine-grained filtering. This is a diverse topic as there are many global and service-specific condition keys and which ones are included in the request context is an opaque process.

Let’s see a simple example involving object tags.

To give access to all objects that have the access=secret tag to a user is possible with the s3:ExistingObjectTag/access condition key:

Get hands-on with 1400+ tech skills courses.