BentOnCoding
BentOnCoding

Reputation: 28158

How can I get the creation date of an Amazon S3 Blob?

How can I get the creation date of an Amazon S3 Blob ? I want to see the date my blob was created.

Is this possible ?

Upvotes: 2

Views: 4016

Answers (2)

Faiz
Faiz

Reputation: 5453

Hope this helps..

aws s3api list-objects --bucket bucket-name --prefix Path/filter/here/ --query "Contents[].LastModified"

Upvotes: 1

Tom Andersen
Tom Andersen

Reputation: 7200

You need to do a HEAD request on the blob if you are using the API. I don't know what you are using - direct REST or perhaps some C# library?

With the AWS client, you can log in and see the 'last modified' date. This is the creation date - AWS S3 only allows atomic - whole changes to each blob.

If you don't have versioning on, no data is retained, other than perhaps log files, that would show the dates of other blobs uploaded with the same file name (key). So perhaps you are out of luck.. it depends on what you mean by 'creation'.

Upvotes: 5

Related Questions