AWS Certified Solutions Architect - Associate (SAA-C02)

Sign Up Free or Log In to participate!

S3 object’s Version ID is null?

Why initial version of S3 object’s Version ID is "null" always?

Fatih Cakir

I don’t know the answer but it could be some kind of marker to highlight the initial version of an object.

2 Answers

If I were to guess, I’d say it is because versioning was disabled when the object was first uploaded.

Otavio is correct.

A Version ID is only generated if versioning is turned on at the point in time when the object is uploaded.

Since Version ID is available for all objects once versioning is turned on, some value has to be used as the Version ID for objects uploaded before versioning was turned on. This value is null.

Hence, all objects that were in a bucket before versioning was turned on are signified by their Version ID being null.

See https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?