-
AWS Boto3 S3: Difference between upload_file and put_object
Introduction
AWS Boto3’s S3 API provides two methods that can be used to upload a file to an S3 bucket. These methods are:
put_object
upload_file
In this article, we will look at the differences between these methods and when to use them.
-
How to tag all objects in a S3 bucket using AWS CLI?
Introduction
AWS S3 supports the ability to tag objects. Each tag is a key-value pair. You can associate up to 10 tags with an object.
Some of the benefits of tagging objects in S3 are:
- Categorizing your storage
- Fine-grained access control: You can grant IAM user permissions to read-only objects with specific tags
- Fine-grained lifecycle management: You can specify a tag-based filter in a lifecycle rule.
AWS
s3api
supports Object Tagging via theput-object-tagging
command. However, this command only supports tagging one object at a time. In this article, we will look at how you can tag all objects within a S3 bucket. -
AWS S3 Versioning: How to enable and suspend using AWS CLI?
Introduction
AWS S3 Versioning allows you to keep multiple variants of an object in the same bucket. Versioning helps you recover from more easily from accidental deletes or overwrites.
By default, Versioning is disabled on buckets. In this article, we will look at how to enable and suspend versioning.
-
AWS Boto, Boto3 and Botocore: What are the differences?
-
Amazon Lightsail vs EC2: Which is the right service for you?
Introduction
Amazon EC2 and Lightsail are two services provided by AWS that are similar to each other. EC2 and Lightsail are used to create virtual servers in the cloud to run web applications.
Choosing the right service for hosting your application can be difficult due to the wide range of features.
In this article, we will look into both of these services in detail to better understand which service is better suited for your use case.