Most viewed questions in AWS

+5 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
313,272 views
+1 vote
2 answers

Download file from s3 - aws cli

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

Aug 23, 2019 in AWS by Faiza
224,332 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 126,762 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,440 points

edited Jul 10, 2023 by Khan Sarfaraz 82,210 views
0 votes
2 answers

Delete a folder from an s3 bucket - aws cli

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

Oct 3, 2019 in AWS by Shai
55,298 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
53,526 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,530 points
52,171 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
49,528 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
49,431 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,440 points
49,134 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,090 points
47,935 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 43,250 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,090 points
42,525 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,090 points
41,827 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,090 points
40,826 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
39,888 views
0 votes
2 answers

How to rename a S3 bucket name?

Hi, You can rename your S3 bucket name. ...READ MORE

Oct 5, 2020 in AWS by akhtar
• 38,230 points
39,549 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
39,437 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
38,600 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,440 points
38,065 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,090 points
33,961 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
33,811 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
32,603 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,090 points
31,733 views
0 votes
2 answers

Error : No supported authentication methods available on AWS

Diff from other answers above: I received this ...READ MORE

Mar 25, 2019 in AWS by Bathinda
• 140 points
31,480 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
30,739 views
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
30,051 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
29,730 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,230 points
29,411 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
28,946 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
26,186 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,440 points
23,948 views
+2 votes
1 answer

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

Hi@akhtar, You have to give permissions to your ...READ MORE

Jun 3, 2020 in AWS by MD
• 95,440 points
23,746 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
23,292 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
22,916 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
22,576 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
22,452 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,360 points
22,331 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
21,928 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
21,694 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
21,355 views
+2 votes
1 answer

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

PCF is a commercial cloud platform (product) ...READ MORE

Sep 11, 2018 in AWS by Priyaj
• 58,090 points
21,021 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,090 points
20,921 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
20,771 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 19,769 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
19,273 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,210 points
19,217 views
0 votes
1 answer
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
18,940 views