Trending questions in AWS

+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 26,670 views
0 votes
1 answer

How to add permissions to an existing Lambda function?

Hi@akhtar, You can grant an AWS service or another ...READ MORE

Nov 5, 2020 in AWS by MD
• 95,060 points
77 views
0 votes
1 answer

How to delete a Lambda function using AWS CLI?

Hi@akhtar, You can delete a Lambda function. To ...READ MORE

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

How to delete an access key for an IAM user?

Hi@akhtar, If you do not specify a user ...READ MORE

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

How to change an IAM role session duration?

Hi@akhtar, You can update the IAM role from ...READ MORE

Nov 4, 2020 in AWS by MD
• 95,060 points
100 views
0 votes
1 answer

How to copy an AMI to another region using AWS CLI?

Hi@akhtar, You can copy an AMI from the ...READ MORE

Nov 5, 2020 in AWS by MD
• 95,060 points
55 views
0 votes
1 answer

How to create an account alias in AWS?

Hi@akhtar, You can create an alias for your ...READ MORE

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

How to activate or deactivate an access key for an IAM user?

Hi@akhtar, The following update-access-key command deactivates the specified access key ...READ MORE

Nov 4, 2020 in AWS by MD
• 95,060 points
80 views
0 votes
1 answer

How to attach a volume to an instance in AWS?

Hi@akhtar, You can attach an EBS volume to a ...READ MORE

Nov 5, 2020 in AWS by MD
• 95,060 points
42 views
0 votes
1 answer

Create an instance profile in AWS.

Hi@akhtar, Sometimes we need to create multiple instance ...READ MORE

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

How to update a CloudFront distribution's default root object?

Hi@akhtar, The following example updates the default root ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
134 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,060 points
1,229 views
0 votes
1 answer

Is aws cdn edge locations are connected each other?

Hi@Senthiikumar, Yes, according to my knowledge all the ...READ MORE

Nov 4, 2020 in AWS by MD
• 95,060 points
50 views
+1 vote
1 answer

How to add an user to an IAM group?

Hi@akhtar, You can add the specified user to the ...READ MORE

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

How to delete an IAM user using AWS CLI?

Hi@akhtar, You can delete the specified IAM user. ...READ MORE

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

How to create a virtual MFA device using AWS CLI?

Hi@akhtar, You can create a new virtual MFA device ...READ MORE

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

How to create a password for an IAM user?

Hi@akhtar, You can create a password for the specified ...READ MORE

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

How to change the password for your IAM user?

Hi@akhtar, You can change the password of the IAM ...READ MORE

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

How to create an access key for an IAM user in AWS?

Hi@akhtar, You can create a new AWS secret ...READ MORE

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

How to list CloudFront origin access identities?

Hi@akhtar, The following example gets a list of ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
81 views
0 votes
1 answer

Delete a signing certificate for an IAM user.

Hi@akhtar, If you do not specify a user ...READ MORE

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

How to attach a managed policy to an IAM user?

Hi@akhtar, You can attach the specified managed policy ...READ MORE

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

How to add a role to an instance profile in AWS?

Hi@akhtar, You can add the specified IAM role ...READ MORE

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

How to delete an origin access identity in Cloudfront?

Hi@akhtar, You can delete your origin access identity ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
84 views
0 votes
1 answer

How to attach a managed policy to an IAM group?

Hi@akhtar, You can attach the specified managed policy to ...READ MORE

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

How to creates a new origin access identity in Cloudfront?

Hi@akhtar, If you're using Amazon S3 for your ...READ MORE

Nov 1, 2020 in AWS by MD
• 95,060 points
99 views
0 votes
1 answer

How to delete a distribution in Cloudfront?

Hi@akhtar, Before you can delete a distribution, you ...READ MORE

Nov 1, 2020 in AWS by MD
• 95,060 points
94 views
0 votes
1 answer

How to delete a CloudFront public key?

Hi@akhtar, You can delete your Cloudfront public key ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
63 views
0 votes
1 answer

How to list CloudFront public keys?

Hi@akhtar, You can list down your public keys ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
43 views
0 votes
1 answer

Is there any impact when i create AMI without SYSPREP shutdown in Windows EC2 instance?

Hi@Lakshminarayanan, I think it will impact your instance ...READ MORE

Oct 30, 2020 in AWS by MD
• 95,060 points
197 views
0 votes
1 answer

How to get a CloudFront origin access identity?

Hi@MD, The following example gets the CloudFront origin ...READ MORE

Nov 2, 2020 in AWS by akhtar
• 38,170 points
57 views
0 votes
1 answer

How to remove tags from a CloudFront distribution?

Hi@akhtar, The following example removes two tags from ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
33 views
0 votes
1 answer

How to monitor Oracle RDS instance in AWS?

You could probably use Cloudwatch itself for ...READ MORE

Nov 2, 2020 in AWS by Nilesh
40 views
0 votes
1 answer

How to list down all the distributions in Cloudfront?

Hi@akhtar, You can list down all the distributions ...READ MORE

Nov 1, 2020 in AWS by MD
• 95,060 points
58 views
0 votes
1 answer

How to get the CloudFront distribution?

Hi@akhtar, To get the distribution, you need to ...READ MORE

Nov 2, 2020 in AWS by MD
• 95,060 points
33 views
0 votes
1 answer

Create a new invalidation in Cloudfront.

Hi@akhtar, The CloudFront console allows you to specify ...READ MORE

Nov 1, 2020 in AWS by MD
• 95,060 points
45 views
0 votes
1 answer

Creates a new web distribution in Cloudfront.

Hi@akhtar, You can create a CloudFront distribution to ...READ MORE

Nov 1, 2020 in AWS by MD
• 95,060 points
39 views
0 votes
1 answer

How to access my on premises file server from AWS ?

You can use Amazon FSx for Windows ...READ MORE

Oct 30, 2020 in AWS by Raghwendra
55 views
0 votes
2 answers

In AWS Cloud formation when I upload template it shows error: At least one Resources member must be defined

that's because you have resources defined in ...READ MORE

Oct 25, 2020 in AWS by Spyder
442 views
0 votes
1 answer

How to describe EC2 instances using Boto3?

Hi@akhtar, An EC2 instance is a virtual server ...READ MORE

Oct 8, 2020 in AWS by MD
• 95,060 points
901 views
0 votes
1 answer

What makes Amazon’s T-series EC2 instances unsuitable for production deployments?

It's not unsuitable, it depends on your ...READ MORE

Oct 27, 2020 in AWS by Lohith
50 views
0 votes
1 answer

Is possible to create environment variables in windows EC2 instance without SSM document?

Hi@Lakshminarayanan, When we connect AWS console using SDK  ...READ MORE

Oct 27, 2020 in AWS by MD
• 95,060 points
52 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,060 points
1,499 views
0 votes
1 answer

How to execute commands on AWS Instance using Boto3?

Hi@akhtar, You can use the boto3 module to ...READ MORE

Oct 7, 2020 in AWS by MD
• 95,060 points
800 views
0 votes
1 answer

Need help to deploy the IIS websites and windows services into EC2 machines using automation.

Hey, you could automate this scenario using ...READ MORE

Oct 23, 2020 in AWS by Vikas
67 views
0 votes
1 answer

How to enable versioning for an S3 bucket?

Hi@akhtar, To enable or disable versioning on an ...READ MORE

Oct 22, 2020 in AWS by MD
• 95,060 points
51 views
0 votes
1 answer

How to copy a snapshot in AWS from the command line?

Hi@akhtar, The following copy-snapshot example command copies the specified snapshot ...READ MORE

Oct 20, 2020 in AWS by MD
• 95,060 points
113 views
0 votes
1 answer

How to encrypt a snapshot in AWS?

Hi@MD, The following copy-snapshot command copies the specified unencrypted snapshot ...READ MORE

Oct 20, 2020 in AWS by akhtar
• 38,170 points
80 views