Trending 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
250,036 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
84,555 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
46,982 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
40,569 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,240 points
22,103 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
33,124 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,180 points
25,635 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,240 points
20,177 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
27,926 views
0 votes
1 answer

Unziiping a tar.gz file in aws s3 bucket and upload it back to s3 using lambda

Hi@khyati, You can do your task using lambda. ...READ MORE

Dec 3, 2020 in AWS by MD
• 95,240 points
4,059 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
23,308 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
35,683 views
0 votes
1 answer

How to list contents of a bucket with boto3?

Hi@akhtar, You can create a session for an ...READ MORE

Sep 21, 2020 in AWS by MD
• 95,240 points
6,790 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 22, 2020 in AWS by MD
• 95,240 points
6,634 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,180 points
5,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,240 points
12,452 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 30,784 views
0 votes
1 answer

How to download a file from S3 buckets using boto3?

Hi@akhtar, Boto3 supports upload_file() and download_file() APIs to ...READ MORE

Oct 7, 2020 in AWS by MD
• 95,240 points
3,811 views
0 votes
1 answer

How to delete huge data from DynamoDB table in AWS?

Hi@akhtar, If you required to delete all the ...READ MORE

Dec 16, 2020 in AWS by MD
• 95,240 points
712 views
+1 vote
1 answer

How should we need to pay for AWS ACM CA Private Certificate?

Hi@Lakshminarayanan, In the document it is written that ...READ MORE

Dec 24, 2020 in AWS by MD
• 95,240 points
231 views
0 votes
1 answer

How to use Docker Machine to provision hosts on cloud providers?

Hi@akhtar, Docker Machine driver plugins are available for ...READ MORE

Dec 21, 2020 in AWS by MD
• 95,240 points
343 views
0 votes
0 answers

How to mount an S3 bucket in an EC2 instance?

Hi Guys, I am new to AWS. I ...READ MORE

Dec 17, 2020 in AWS by akhtar
• 38,180 points
252 views
0 votes
1 answer

What does ECU units, CPU core and memory mean in EC2 instance?

Hi@MD, ECU means Amazon EC2 compute unit. Amazon ...READ MORE

Dec 16, 2020 in AWS by akhtar
• 38,180 points
235 views
0 votes
1 answer

How to decrease my AMI size in AWS Cloud?

Hi@Lakshminarayanan, You can't decrease the volume size directly. ...READ MORE

Dec 10, 2020 in AWS by MD
• 95,240 points
256 views
0 votes
1 answer

How to uninstall aws-cli?

Hi@akhtar, I also faced a similar type of ...READ MORE

Dec 8, 2020 in AWS by MD
• 95,240 points
302 views
0 votes
1 answer

An error occurred (BadRequestException) when calling the UpdateRestApi operation: Invalid patch path /tags/keytest.

Hi@akhtar, You need to use the tag-resource method instead ...READ MORE

Dec 8, 2020 in AWS by MD
• 95,240 points
283 views
0 votes
1 answer

Unable to import module 'lambda_function': No module named 'pymongo' for mongodb with python in aws lambda.

Hi@pradip, I think you need to import some ...READ MORE

Nov 3, 2020 in AWS by MD
• 95,240 points
1,795 views
0 votes
1 answer

How to add a tag to aws api gateway using aws cli?

Hi@akhtar, You need to use a tag-resource method in ...READ MORE

Dec 8, 2020 in AWS by MD
• 95,240 points
281 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
31,929 views
0 votes
1 answer

How to find exact stopped time of AWS EC2 instances?

Hi@Lakshminarayanan, You can use InstanceState Data Types in your ...READ MORE

Dec 3, 2020 in AWS by MD
• 95,240 points
365 views
0 votes
1 answer

No package python3 available in AWS EC2.

Hi@akhtar, It seems the python3 package is not ...READ MORE

Dec 8, 2020 in AWS by MD
• 95,240 points
110 views
0 votes
1 answer

What is File Gateway in AWS Storage Gateway?

Hi@akhtar, File Gateway is a configuration of the AWS ...READ MORE

Dec 8, 2020 in AWS by MD
• 95,240 points
81 views
0 votes
2 answers

What are the things we should consider before reserving EC2 instances?

Hi@Lakshminarayanan, First, it depends on the duration. It ...READ MORE

Dec 7, 2020 in AWS by MD
• 95,240 points
84 views
0 votes
1 answer

How to add a file to a repository in AWS CodeCommit?

Hi@akhtar, You can add or update a file in a ...READ MORE

Nov 24, 2020 in AWS by MD
• 95,240 points
617 views
0 votes
1 answer

How to clear the credentials in AWS Configure?

Hi@akhtar, You need to remove the configuration file ...READ MORE

Nov 17, 2020 in AWS by MD
• 95,240 points
921 views
0 votes
1 answer

how do i copy/move incremental aws snapshot to s3 bucket ?

Hi@gorie, You can do this in two ways. ...READ MORE

Dec 3, 2020 in AWS by MD
• 95,240 points
193 views
0 votes
1 answer

How to merge two branches using the squash merge strategy in AWS CodeCommit?

Hi@akhtar, You can merge two branches using the ...READ MORE

Nov 24, 2020 in AWS by MD
• 95,240 points
564 views
0 votes
1 answer

How to disable actions for an alarm in AWS?

Hi@akhtar, You can disable the actions for the specified ...READ MORE

Nov 18, 2020 in AWS by MD
• 95,240 points
833 views
0 votes
1 answer

How to create a pull request in AWS CodeCommit?

Hi@akhtar, The following create-pull-request example creates a pull request named ...READ MORE

Nov 22, 2020 in AWS by MD
• 95,240 points
586 views
0 votes
1 answer

How to forward https traffic to launching new instances?

Hi@Lakshminarayanan, You can do this with the routing ...READ MORE

Dec 3, 2020 in AWS by MD
• 95,240 points
105 views
0 votes
1 answer

How to delete a file from a branch in AWS CodeCommit?

Hi@akhtar, The following delete-file example demonstrates how to ...READ MORE

Nov 23, 2020 in AWS by MD
• 95,240 points
471 views
0 votes
1 answer

A characteristic of edge locations is

Hi@anjali, An edge location is where end-users access services located ...READ MORE

Nov 19, 2020 in AWS by MD
• 95,240 points
575 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
34,990 views
0 votes
1 answer

How to create or update tags for an Auto Scaling group in AWS?

Hi@akhtar, You can create or update tags for the specified ...READ MORE

Nov 26, 2020 in AWS by MD
• 95,240 points
235 views
0 votes
1 answer

How to change the name of a repository in AWS CodeCommit?

Hi@akhtar, You can rename a repository. The repository name ...READ MORE

Nov 25, 2020 in AWS by MD
• 95,240 points
281 views
0 votes
1 answer

How to create a Cluster Security Group in RedShift?

Hi@akhtar, You can create a new Amazon Redshift security ...READ MORE

Nov 26, 2020 in AWS by MD
• 95,240 points
204 views
0 votes
1 answer

How to change the default branch for a repository in AWS CodeCommit?

Hi@akhtar, You can set or change the default branch name ...READ MORE

Nov 24, 2020 in AWS by MD
• 95,240 points
288 views
0 votes
1 answer

How to reboot a RedShift Cluster?

Hi@akhtar, You can reboot a cluster. with the CLI ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,240 points
148 views
0 votes
1 answer

How to resize a RedShift cluster in AWS?

Hi@akhtar, You can change the size of the cluster. ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,240 points
137 views
0 votes
1 answer

How to delete a Cluster with No Final Cluster Snapshot in RedShift?

Hi@akhtar, You can delete a previously provisioned cluster without ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,240 points
135 views