-
How to use Boto3 to download all files from an S3 Bucket?
Introduction
AWS Boto3 is the Python SDK for AWS. Boto3 can be used to directly interact with AWS resources from Python scripts.
Boto3’s S3 API doesn’t have any method to download all of the files from your S3 bucket at once.
In this tutorial, we will look at how we can use the Boto3 library to download all the files from your S3 bucket.
-
What are the differences between Internet Gateway and NAT Gateway?
Introduction
Networking in AWS is complicated. Understanding AWS networking concepts and how they work together is essential to ensure that your services are secure and have internet connectivity.
Before looking at the differences between Internet & NAT Gateway, let’s go through AWS networking fundamentals.
-
How to download an entire AWS S3 Bucket?
Introduction
AWS S3 CLI provides two different commands that we can use to download an entire S3 Bucket.
The commands are:
- cp
- sync
Using cp
cp
can download all the files from the bucket to your local folder. If there are multiple folders in the bucket, you can use the--recursive
flag.The command you would use to copy all the files from a bucket named
my-s3-bucket
to your current working directory:aws s3 cp s3://my-s3-bucket/ . --recursive
If you want to learn more about how to use the
cp
command, check out our tutorial that goes into more detail. -
How to find your AWS Account ID using CLI & Boto 3
Introduction
There are many reasons why you might need your AWS Account ID:
- If you sign in to an AWS account as an IAM user, you must have your account ID
- Many AWS resources include the Account ID in their Amazon Resource Names (ARNs).
There are multiple ways to retrieve your Account ID.
-
What are the differences between AWS Public and Private Subnets?
Introduction
Networking in AWS is complicated. Understanding AWS networking concepts and how they work together is essential to ensure that your services are secure and have internet connectivity.
Before looking at the differences between Public & Private subnets, let’s go through AWS networking fundamentals.