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
222,814 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
74,140 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
33,229 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
36,822 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,100 points
29,205 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,140 points
13,174 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
22,045 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,100 points
24,145 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,140 points
13,893 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,140 points
1,952 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,140 points
4,233 views
0 votes
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,140 points
132 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,140 points
207 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,140 points
284 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
3,260 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
142 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
144 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
32,381 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,140 points
10,031 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,140 points
144 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,140 points
165 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,140 points
152 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,140 points
130 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,140 points
75 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,140 points
59 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,140 points
64 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,053 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,140 points
205 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,140 points
563 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
19,456 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,140 points
508 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,140 points
115 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,140 points
80 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,140 points
525 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,140 points
3,184 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,140 points
130 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,140 points
128 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,140 points
92 views
0 votes
1 answer

How to delete a Cluster Snapshot in AWS RedShift?

Hi@akhtar, You can delete the specified manual snapshot. The ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,140 points
85 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,140 points
82 views
0 votes
1 answer

How to create a Cluster Subnet Group in AWS RedShift?

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

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

How to disable snapshot copy for a cluster in RedShift?

Hi@akhtar, You can disable the automatic copying of snapshots ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,140 points
74 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,140 points
72 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,140 points
227 views
0 votes
1 answer

How to create a notification subscription for an event in AWS RedShift?

Hi@akhtar, You can create an Amazon Redshift event notification ...READ MORE

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

How to create tags for a cluster in AWS RedShift?

Hi@akhtar, You can add tags to a cluster. A ...READ MORE

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

How to delete a Cluster Security Group in RedShift?

Hi@akhtar, You can delete an Amazon Redshift security group. The ...READ MORE

Nov 27, 2020 in AWS by MD
• 95,140 points
58 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,140 points
166 views
0 votes
1 answer

How to create an HSM client certificate in AWS RedShift?

Hi@akhtar, You can create an HSM client certificate that ...READ MORE

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

How to delete an Auto Scaling group in AWS?

You can delete the specified Auto Scaling group. ...READ MORE

Nov 26, 2020 in AWS by MD
• 95,140 points
69 views