#Amplify Gen2 on iOS, multi-part S3 uploads using session credentials/pre-signed URLs?

4 messages · Page 1 of 1 (latest)

dusky scroll
#

Hi all,

In our app (iOS, native Swift) we are using Amplify Gen1's AWSS3TransferUtility to do multi-part uploads to S3. For authentication we use session credentials (accessKey, secretKey, sessionToken) that we get from our back-end, we put them in an AWSBasicSessionCredentialsProvider. This has been working fine for some years but now that it appears that Gen1 is being phased out, we are looking into migrating to Gen2. Setting up the Amplify.Storage part seems pretty straightforward but configuring the Amplify.Auth part has me scratching my head...

Is there an auth plugin for Amplify that lets me use session credentials and if so, how do I configure and use it?

Alternatively, would it be possible to use pre-signed URLs instead of the session credentials and if so, how do I configure Amplify for them?

Sorry if there are obvious answers to these questions but I've been searching the documentation for a day now and I'm quite stumped... Any help would be appreciated!

vagrant umbra
#

@dusky scroll were you able to find answers for your questions?

At the moment, there is no way to provide custom credentials in Amplify Storage.. Can you create a Github issue in the Amplify repo and I will prioritize looking into it.

dusky scroll
#

Hi @vagrant umbra , no I didn't get anywhere yet. If it's not possible to provide custom credentials then I'm afraid we're going to have to hold off on adopting Amplify Gen2 for the moment. Thanks for your reply, I'll create a GitHub issue.