Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

boto3

How to Change System Metadata in AWS S3

August 22, 2022 by Magenaut

I am trying to change the metadata of an image in an s3 bucket through lambda, this lambda triggers when an object is uploaded. But for some reason when I update the metadata through copy_from it adds user metadata instead of the System Metadata like this:
How to Change System Metadata in AWS S3

Categories Python, Q&A Tags amazon-s3, amazon-web-services, boto3, python Leave a comment

Difference in boto3 between resource, client, and session?

August 18, 2022 by Magenaut

I am using Python 2.7.12 in Ubuntu 16.04 LTS. I’m learning how to use boto3 from the following link: https://boto3.readthedocs.io/en/latest/guide/quickstart.html#using-boto-3. My doubt is when to use resource, client, or session, and their respective functionality.

Categories Python, Q&A Tags boto3, python Leave a comment

How to write a file or data to an S3 object using boto3

August 17, 2022 by Magenaut

In boto 2, you can write to an S3 object using these methods:

Categories Python, Q&A Tags amazon-s3, amazon-web-services, boto, boto3, python Leave a comment

Boto3 to download all files from a S3 Bucket

August 17, 2022 by Magenaut

I’m using boto3 to get files from s3 bucket. I need a similar functionality like aws s3 sync

Categories Python, Q&A Tags amazon-s3, amazon-web-services, boto3, python Leave a comment

Listing contents of a bucket with boto3

August 15, 2022 by Magenaut

How can I see what’s inside a bucket in S3 with boto3? (i.e. do an "ls")?

Categories Python, Q&A Tags amazon-s3, amazon-web-services, boto, boto3, python Leave a comment

Retrieving subfolders names in S3 bucket from boto3

August 15, 2022 by Magenaut

Using boto3, I can access my AWS S3 bucket:

Categories Python, Q&A Tags amazon-s3, amazon-web-services, boto3, python Leave a comment

How to handle errors with boto3?

August 14, 2022 by Magenaut

I am trying to figure how to do proper error handling with boto3.

Categories Python, Q&A Tags amazon-web-services, boto, boto3, python Leave a comment

check if a key exists in a bucket in s3 using boto3

August 12, 2022 by Magenaut

I would like to know if a key exists in boto3. I can loop the bucket contents and check the key if it matches.

Categories Python, Q&A Tags amazon-s3, boto3, python Leave a comment

How to SSH and run commands in EC2 using boto3?

August 11, 2022 by Magenaut

I want to be able to ssh into an EC2 instance, and run some shell commands in it, like this.

Categories Python, Q&A Tags amazon-ec2, boto3, python Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress