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
3,582 views

1 answer to this question.

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,670 points

Related Questions In AWS

0 votes
0 answers
0 votes
0 answers

Is there any way, where I can use one IP for 2 AWS instances?

Is there any way, where I can ...READ MORE

Sep 18, 2020 in AWS by anonymous
• 19,610 points
542 views
0 votes
1 answer
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+1 vote
2 answers

AWS CloudWatch Logs in Docker

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

answered Sep 7, 2018 in AWS by bug_seeker
• 15,510 points
2,066 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,670 points
5,525 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,670 points
1,184 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP