I currently have a set of files on S3 that are private. I need to temporarily generate a public, signed URL. This works with the boto API (see the code at the end). How can I do this programmatically with Spaces?
conn = S3Connection(access_key, secret_key) return conn.generate_url( expires_in=expiry_in_sec, method='GET', bucket=MediaService.__find_bucket_name_from_url(raw_url), key=MediaService.__find_path_from_url(raw_url), query_auth=True, force_http=(not https) )
Does the S3 compatibility work for
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!