I have an application that reads JSON files from S3 - older versions of my application need to reference corresponding older versions of the JSON files stored within S3 - is there a way to link (hard code) specific versions of the JSON files within S3?
I could just rename the JSON files by adding a version number to the JSON file name, but this seems unnecessary since S3 provides versioning.
Each version of a versioned object has a unique version ID. If you have a file named dog.png in your version-controlled bucket then an HTTP GET of /dog.png will retrieve the latest but a GET of /dog.png?versionId=xyz will retrieve the object at version xyz.
Note that versions IDs look something like this: L4kqtJlcpXroDTDmpUMLUo.
See the retrieving object versions documentation for more.