title: How to download a file from private S3 bucket using its URL?
body: <p>I have a file that is stored on AWS s3 at <code>https://xyz.s3.amazonaws.com/foo/file.json</code> and I want to download that into my local machine using Python. However, the URL cannot be accessed publicly. I have the Account ID, IAM user name, and password (but NO Access Key or Secret Access Key and no permissions to view/change them either) to the resource that contains this file. How can I programmatically download this file instead of doing so from the console?</p>