1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
You may want to try the condition key s3:x-amz-storage-class which filters access by storage class. Take a look at this reference Actions, resources, and condition keys for Amazon S3 with the whole list.
When you grant access policy permissions for Amazon S3 operations, you can use the s3:x-amz-storage-class condition key to restrict which storage class to use when storing uploaded objects. For example, when you grant the s3:PutObject permission, you can restrict object uploads to a specific storage class. For an example policy, see Example 5: Restricting object uploads to objects with a specific storage class
I hope this helps!!!
answered 10 months ago
Relevant content
- Accepted Answerasked 2 years ago
- asked 6 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
Hi,
I was checking the
s3:x-amz-storage-class
key, but it seems that this is for the target Storage Class of the operation. E.g. I could set the permission set to allow setting the files in one of these Storage ClassesSTANDARD | REDUCED_REDUNDANCY | STANDARD_IA | ONEZONE_IA | INTELLIGENT_TIERING | GLACIER | DEEP_ARCHIVE | OUTPOSTS | GLACIER_IR | SNOW | EXPRESS_ONEZONE
.My question however is related to a file that's already in a cold storage tier (
DEEP_ARCHIVE | GLACIER
or the S3 Intelligent-Tiering Archive Access or Deep Archive Access storage tiers) and I want to Restore the object (which creates a copy of the object say inSTANDARD
for X days). The speed of the restore is managed by the "Retrieval tier" selected (Bulk | Standard | Expedited
) which also affects the cost of the operation.I would like to have a permission set that only allows to use the
RestoreObject
action for say theBulk
Retrieval tier.