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
316 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,280 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
• 57,300 points
74 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
801 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
264 views
+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
• 15,360 points
429 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,280 points
1,644 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,280 points
107 views