Is there any way to use boto3 anonymously?

0 votes

Using boto I was able to connect to the public S3 buckets without having credentials by passing the anon= keyword argument.

s3 = boto.connect_s3(anon=True)

Can I do this with boto3?

Jul 18, 2018 in AWS by Hammer
• 360 points
107 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Yes. Your credentials are used to sign all the requests you send out, so all you have to do is configure the client to not perform the signing step at all. You can do this as follows:

import boto3
from botocore import UNSIGNED
from botocore.client import Config

s3 = boto3.client('s3', config=Config(signature_version=UNSIGNED))
# Use the client
answered Jul 18, 2018 by Cloud gunner
• 4,240 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

Is there a way to move AWS Elasticsearch to another account

Create a role with Elasticsearch permission. Provide the iam:PassRole for ...READ MORE

answered Oct 30, 2018 in AWS by Priyaj
• 56,100 points
25 views
0 votes
1 answer

Is there any equivalent to AWS Config in Azure?

Azure Policy is not exactly same but ...READ MORE

answered Dec 6, 2018 in AWS by Nitesh
167 views
+13 votes
2 answers
+1 vote
2 answers

AWS CloudWatch Logs in Docker

The awslogs works without using ECS. you need to configure ...READ MORE

answered Sep 6, 2018 in AWS by bug_seeker
• 14,960 points
229 views
0 votes
1 answer

Want to use an AWS Cognito User Pool without putting a password(for an easier approach)

Currently, AWS Cognito is not supporting passwordless ...READ MORE

answered May 4, 2018 in AWS by Cloud gunner
• 4,240 points
975 views
0 votes
1 answer

Trying to use GetApiKeys in Amazon SDK

Try using this one:  var client = new ...READ MORE

answered Jun 12, 2018 in AWS by Cloud gunner
• 4,240 points
46 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.