Open S3 object as a string with Boto3
I’m aware that with Boto 2 it’s possible to open an S3 object as a string with: get_contents_as_string() Is there an equivalent function in boto3 ? 6 Answers 6
I’m aware that with Boto 2 it’s possible to open an S3 object as a string with: get_contents_as_string() Is there an equivalent function in boto3 ? 6 Answers 6
I am trying to figure how to do proper error handling with boto3. I am trying to create an IAM user: def create_user(username, iam_conn): try: user = iam_conn.create_user(UserName=username) return user except Exception as e: return e When the call to create_user succeeds, I get a neat object that contains the http status code of the … Read more
How can I see what’s inside a bucket in S3 with boto3? (i.e. do an “ls”)? Doing the following: import boto3 s3 = boto3.resource(‘s3’) my_bucket = s3.Bucket(‘some/path/’) returns: s3.Bucket(name=”some/path/”) How do I see its contents? 19 Answers 19