Skip to main content
Solved

Can FME read AWS S3 file version ID?

  • November 18, 2020
  • 3 replies
  • 14 views

aguan
Contributor
Forum|alt.badge.img+10
  • Contributor

I used S3Connector to upload a file to a S3 bucket which has versioning enabled. I uploaded three files to the same bucket, and I can see the three version IDs in the AWS console. Can I retrieve the version ID of the latest upload? Can I download the file of a specific version?

Best answer by aguan

aguan wrote:

@nampreetatsaft, yet I just voted for this idea post. I have a python script that can retrieve the version, will try using PythonCaller, and maybe HTMLCaller. Thanks for the help.

Using boto3 python module, which fortunately comes with FME, I successfully retrieved S3 version ID in a PythonCaller.

View original
Did this help you find an answer to your question?

3 replies

nampreetatsafe
Safer
Forum|alt.badge.img+12

Hi @aguan​: Great question! I don't see way of currently doing this using the S3Connector. I've created this Idea post for you, which I would encourage you to vote on and provide a comment on to tell us more about your use-case.

If you enable versioning in your S3 Bucket, and upload an object multiple times using the S3Connector, it does seem to create a new version. But unfortunately the S3Connector isn't brining in the versioning information when doing a listing or download.

In the meantime, consider try the HTMLCaller to leverage the S3 API: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html


aguan
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • November 28, 2020
nampreetatsafe wrote:

Hi @aguan​: Great question! I don't see way of currently doing this using the S3Connector. I've created this Idea post for you, which I would encourage you to vote on and provide a comment on to tell us more about your use-case.

If you enable versioning in your S3 Bucket, and upload an object multiple times using the S3Connector, it does seem to create a new version. But unfortunately the S3Connector isn't brining in the versioning information when doing a listing or download.

In the meantime, consider try the HTMLCaller to leverage the S3 API: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html

@nampreetatsaft, yet I just voted for this idea post. I have a python script that can retrieve the version, will try using PythonCaller, and maybe HTMLCaller. Thanks for the help.


aguan
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • Best Answer
  • December 9, 2020
aguan wrote:

@nampreetatsaft, yet I just voted for this idea post. I have a python script that can retrieve the version, will try using PythonCaller, and maybe HTMLCaller. Thanks for the help.

Using boto3 python module, which fortunately comes with FME, I successfully retrieved S3 version ID in a PythonCaller.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings