Most viewed questions in AWS

+6 votes
14 answers

Python AWS Boto3: How do i read files from S3 Bucket?

You can use the following code, import boto3 s3 ...READ MORE

Dec 7, 2018 in AWS by Nitesh
317,202 views
+2 votes
2 answers

How to download files from s3 bucket using command line?

You can use cp to copy the ...READ MORE

Aug 23, 2019 in AWS by Faiza
235,441 views
+9 votes
17 answers

AWS VPC - What is the difference between Internet Gateway & NAT

Internet Gateway An Internet Gateway is a logical connection ...READ MORE

Apr 24, 2018 in AWS by Flying geek
• 3,280 points

edited Jul 10, 2023 by Khan Sarfaraz 129,858 views
+1 vote
1 answer

remote side unexpectedly closed network connection.

Hi@akhtar, A PuTTY session left idle will disconnect ...READ MORE

Aug 27, 2020 in AWS by MD
• 95,460 points

edited Jul 10, 2023 by Khan Sarfaraz 86,366 views
0 votes
2 answers

How to delete a folder in AWS s3?

There is a delete-folder option, but you ...READ MORE

Oct 3, 2019 in AWS by Shai
67,647 views
+1 vote
2 answers

How to read a csv file stored in Amazon S3 using csv.DictReader

The code would be something like this: import ...READ MORE

Oct 25, 2018 in AWS by Archana
• 5,640 points
54,888 views
0 votes
1 answer

How to list the contents of Amazon S3 by modified date?

One easy solution would be probably to ...READ MORE

Aug 21, 2018 in AWS by datageek
• 2,540 points
54,392 views
+1 vote
1 answer

Accessing query parameter in Lambda with Python

Have you gone through the mapping template ...READ MORE

Dec 5, 2018 in AWS by bugseeker
52,003 views
+1 vote
1 answer

Unable to import module 'lambda_function': No module named lambda_function

Hi@akhtar, This error appears when you haven’t named ...READ MORE

Apr 28, 2020 in AWS by MD
• 95,460 points
50,854 views
0 votes
1 answer

How to delete a file from S3 bucket using boto3?

You can delete the file from S3 ...READ MORE

Nov 30, 2018 in AWS by Aniket
50,726 views
+2 votes
3 answers

AWS S3 - Listing all objects inside a folder without the prefix

For Scala developers, here it is recursive ...READ MORE

Sep 20, 2018 in AWS by Priyaj
• 58,020 points
49,565 views
+1 vote
2 answers

Read file content from S3 bucket with boto3

s3_client=boto3.resource('s3') bucket = s3_client.Bucket('test') for obj in bucket.objects.all(): contents=obj.get()['Body'].read().decode(encoding="utf-8",errors="ignore") for line ...READ MORE

Jul 4, 2019 in AWS by reddy

edited Jul 4, 2019 by Kalgi 44,769 views
+1 vote
4 answers

What is the difference between Amazon ECS and Amazon EC2?

EC2 allows you to launch individual instances ...READ MORE

Jul 11, 2018 in AWS by Priyaj
• 58,020 points
44,397 views
0 votes
1 answer

Difference between Amazon ec2 and AWS Elastic Beanstalk.

EC2 EC2 is Amazon's service that allows you ...READ MORE

Jul 9, 2018 in AWS by Priyaj
• 58,020 points
43,880 views
+1 vote
3 answers

Log in to AWS using Access Key ID and Secret Access Key ID

You can also use the access key ...READ MORE

Aug 30, 2018 in AWS by eatcodesleeprepeat
• 4,710 points
42,515 views
+1 vote
1 answer

How to delete a folder in S3 bucket using boto3 using Python?

You can delete the folder by using ...READ MORE

Nov 30, 2018 in AWS by Aniket
42,445 views
0 votes
1 answer

Boto3 - python script to view all directories and files

There are no folders, only S3 object ...READ MORE

Sep 14, 2018 in AWS by Priyaj
• 58,020 points
41,777 views
+3 votes
10 answers

Difference between s3n, s3a and s3?

S3 Native FileSystem (URI scheme: s3n) A ...READ MORE

Oct 25, 2018 in AWS by Rishab rohan
41,634 views
0 votes
2 answers

How to rename a S3 bucket name?

There is no direct method to rename ...READ MORE

Apr 23, 2021 in AWS by anonymous

edited Mar 5 41,470 views
0 votes
1 answer

An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.

Hi@akhtar, I think there is a problem with ...READ MORE

Sep 23, 2020 in AWS by MD
• 95,460 points
40,825 views
+4 votes
2 answers

Access EC2 instance using Putty

I will tell you a descriptive way ...READ MORE

Nov 20, 2018 in AWS by Priyaj
• 58,020 points
37,424 views
+1 vote
4 answers

AWS CLI - couldn't connect to endpoint URL

You probably have something wrong in your ...READ MORE

Oct 5, 2018 in AWS by Archana
• 4,170 points
35,533 views
+2 votes
1 answer

How to print all the instance-id and instance-state using Python boto3

You can simply loop through using a ...READ MORE

Dec 3, 2018 in AWS by Nabarupa
35,075 views
0 votes
1 answer

How to connect an EC2 linux instance to another Linux instance?

AWS EC2 instances are more like a ...READ MORE

Jul 16, 2019 in AWS by ArchanaNagur
• 2,360 points
32,841 views
0 votes
1 answer

DynamoDB : The provided key element does not match the schema

The following applies to the Node.js AWS ...READ MORE

Nov 13, 2018 in AWS by Priyaj
• 58,020 points
32,782 views
0 votes
2 answers

Error : No supported authentication methods available on AWS

Hello  That same issue  I have faced but i ...READ MORE

Jun 1, 2021 in AWS by Sumit

edited Mar 5 32,707 views
+3 votes
6 answers

Renaming files in S3

You can either use AWS CLI or ...READ MORE

Oct 16, 2018 in AWS by petter dj
32,069 views
0 votes
1 answer
0 votes
1 answer

How to create folder in your bucket using boto3?

Using Client versioning you can create folders ...READ MORE

Nov 30, 2018 in AWS by Aniket
31,487 views
0 votes
1 answer

List All AWS EC2 Instances using boto3.

Hi@MD, You need to import the boto3 module ...READ MORE

Oct 7, 2020 in AWS by akhtar
• 38,260 points
31,451 views
+2 votes
1 answer

How to upload a file in S3 bucket using boto3 in python

You can use method of creating object ...READ MORE

Nov 30, 2018 in AWS by Aniket
30,109 views
+2 votes
1 answer

<Error> <Code>AccessDenied</Code> not able to connect s3 bucket.

toast is good READ MORE

Nov 2, 2022 in AWS by anonymous

edited Mar 5 30,028 views
0 votes
1 answer

How to convert String to Date in Amazon Athena?

You can use date_parse. All you need ...READ MORE

Jan 16, 2019 in AWS by chandan
28,641 views
0 votes
2 answers

An error occurred (AuthFailure) when calling the DescribeInstances operation: AWS was not able to validate the provided access credentials

After checking time and aws configure settings, ...READ MORE

Apr 11, 2020 in AWS by Arun Kumar
25,918 views
0 votes
1 answer

ImportError: No module named boto3

Hi@akhtar, I think boto3 module is missing from ...READ MORE

Apr 28, 2020 in AWS by MD
• 95,460 points
25,414 views
+1 vote
1 answer

How to transfer my Amazon S3 Bucket to another region

Hey @Richard, as far as I know, ...READ MORE

May 20, 2019 in AWS by Kalgi
• 52,350 points
25,255 views
0 votes
2 answers

Invalid bucket name "s3:\\testdm": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"

Instead of backslashes, use forward slashes C:\Users\jino>aws s3 ...READ MORE

Apr 24, 2019 in AWS by anonymous
24,960 views
0 votes
2 answers

How to configure Sendmail inside a docker container?

          Here are some reference links which ...READ MORE

Apr 10, 2019 in AWS by nmentityvibes
• 420 points
24,510 views
0 votes
2 answers

How to kill a lambda function in AWS?

$ aws lambda put-function-concurrency --function-name my-function --reserved-concurrent-executions ...READ MORE

Mar 28, 2019 in AWS by Shashank
• 1,370 points
23,982 views
0 votes
1 answer
+1 vote
1 answer

Difference between an Edge Location and Availability Zone.

Both the Edge Locations (EL) and Availability ...READ MORE

Aug 6, 2019 in AWS by Yogi
23,259 views
0 votes
2 answers

How to display just the name of files using aws s3 ls command?

aws s3 ls s3://<your_bucket_name>/ | awk '{print ...READ MORE

Mar 17, 2019 in AWS by anonymous
23,140 views
0 votes
1 answer

Scan dynamodb table in sorted order based on a attribute

If you are aware of the HashKey, ...READ MORE

Apr 4, 2019 in AWS by datageek
• 3,090 points
23,072 views
0 votes
2 answers

How to recover lost private key of an EC2 instance?

I'm afraid it's not possible When you launch ...READ MORE

Sep 25, 2018 in AWS by Archana
• 4,170 points
22,887 views
+2 votes
1 answer

How PCF (Pivotal Cloud Foundry) is different from AWS (Amazon Web Services)

PCF (Pivotal Cloud Foundry)is a commercial cloud ...READ MORE

Sep 11, 2018 in AWS by Priyaj
• 58,020 points
22,185 views
0 votes
1 answer

How to catch boto3 Errors

You've summarized the situation well. The old boto had ...READ MORE

Sep 28, 2018 in AWS by Priyaj
• 58,020 points
22,093 views
+2 votes
3 answers

Is it possible to ping AWS EC2 instance

1.Go to EC2 Dashboard and click "Running ...READ MORE

Nov 13, 2020 in AWS by shivam
• 140 points

edited Nov 13, 2020 by Gitika 21,192 views
+3 votes
6 answers

How to move files from amazon ec2 to s3 bucket using command line

Hey, 3 ways you can do this: To ...READ MORE

Oct 9, 2018 in AWS by Omkar
• 69,220 points
20,721 views
+1 vote
1 answer

How to host a dynamic website on aws?

For hosting a dynamic website on AWS, ...READ MORE

Jan 27, 2020 in AWS by Oliver
20,295 views
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

Sep 6, 2018 in AWS by Archana
• 4,170 points
20,285 views