1

I trying refactor application that using s3 = boto3.resource('s3') (what is resource) as S3 instance.

But only Client class has the generate_presigned_url method. So, how can I get presigned URL with resource?

In the internet many examples and examples how to get presigned URL with client but nothing with resource.

1 Answer 1

6

You can access the client associated to the resource this way:

s3 = boto3.resource('s3')
url = s3.meta.client.generate_presigned_url(...)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.