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
230,938 views
+8 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,260 points
77,050 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
37,930 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
36,506 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
33,213 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,120 points
32,464 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,120 points
30,284 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
29,963 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 3, 2019 in AWS by reddy

edited Jul 4, 2019 by Kalgi 28,937 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
27,473 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,120 points
25,418 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
25,227 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
25,106 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
24,439 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
23,955 views
0 votes
2 answers

How to rename a S3 bucket name?

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

Oct 4, 2020 in AWS by akhtar
• 38,170 points
23,146 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
20,567 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
19,528 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
18,650 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,120 points
18,607 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,150 points
17,062 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,120 points
15,766 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,180 points
15,487 views
+1 vote
1 answer

remote side unexpectedly closed network connection.

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

Aug 26, 2020 in AWS by MD
• 95,180 points
15,459 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,130 points
15,450 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
15,184 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,120 points
14,744 views
+1 vote
3 answers

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

Access keys consist of an access key ...READ MORE

Aug 17, 2018 in AWS by Priyaj
• 58,120 points
14,203 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
13,856 views
0 votes
1 answer

How to provide tags for the stack in CloudFormation Template?

In the template anatomy, you cant set ...READ MORE

Aug 13, 2018 in AWS by bug_seeker
• 15,550 points
13,213 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,120 points
12,873 views
0 votes
1 answer

Missing Authentication Token while accessing API Gateway?

I guess you are directly trying to ...READ MORE

Jun 12, 2018 in AWS by Cloud gunner
• 4,650 points
12,427 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,150 points
12,010 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,070 points
11,775 views
+1 vote
10 answers

HTTP request not working with AWS Lambda, please help?

context.done has to be included after the ...READ MORE

Apr 12, 2018 in AWS by brat_1
• 7,180 points
11,718 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
11,612 views
0 votes
1 answer

Python code to publish a message to AWS SNS

Hey @Dipti, you could use something like ...READ MORE

Aug 21, 2019 in AWS by Tara
11,542 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
11,031 views
+1 vote
1 answer

How to upload a file in a particular folder in S3 using Python boto3?

There is a particular format that works ...READ MORE

Nov 30, 2018 in AWS by Aniket
10,905 views
+5 votes
6 answers

Benefits of EBS vs. instance-store

As of now all AMI's in quickstart ...READ MORE

Oct 16, 2018 in AWS by Ashwat Singh
10,854 views
0 votes
1 answer

C# List all files with filename under a amazon S3 folder

Also you can use the following c# ...READ MORE

Oct 5, 2018 in AWS by Priyaj
• 58,120 points
10,826 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,180 points
10,681 views
0 votes
2 answers

How do I add python libraries to an AWS lambda function for Alexa?

If you get lucky (it depends what ...READ MORE

Nov 3, 2020 in AWS by anonymous
10,600 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,120 points
10,483 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
10,305 views
0 votes
1 answer

Copying existing files in a s3 Bucket to another s3 bucket

Suppose the two buckets in question are ...READ MORE

Sep 14, 2018 in AWS by Priyaj
• 58,120 points
10,255 views
0 votes
1 answer

How to send HTML mails using Amazon SNS?

It's not possible to send HTML emails ...READ MORE

Jan 8, 2019 in AWS by Archana
• 5,640 points
10,213 views
+3 votes
2 answers

Amazon AWS Filezilla transfer says : permission denied

Well, I can't see your screenshot that ...READ MORE

May 3, 2018 in AWS by Cloud gunner
• 4,650 points
9,984 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
9,983 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
9,980 views