When should one use a boto3 client and when boot3 resource?

0 votes
Apr 17, 2018 in Cloud Computing by brat_1
• 7,110 points
997 views

1 answer to this question.

0 votes

I referred a similar answer somewhere. I hope this helps:

To start with boto3.resources is a high level services class wrap around boto3.client.

That means to attach connected resources to later use other resources without having to specify the original resource-id.

OTH, boto3.client are low level, you don't have an "entry class object", thus you must explicitly specify the exact resources it connect to for every action you perform.

It depends on individual needs. However, boto3.resources doesn't wrap all the boto3.client functionality, so sometime you need to call boto3.client , or use boto3.resource.meta.client () to get the job done.

answered Apr 17, 2018 by hemant
• 5,750 points

Related Questions In Cloud Computing

0 votes
1 answer

Is there a way to use amazon ECR image from one account in the code build of another account?

These forums might just about help https://forums.aws.amazon.com/t ...READ MORE

answered May 7, 2018 in Cloud Computing by brat_1
• 7,110 points
189 views
0 votes
1 answer
0 votes
1 answer

Where should I use Amazon Kinesis instead of SNS-SQS?

Your concern is very valid. These two ...READ MORE

answered Apr 17, 2018 in Cloud Computing by code_ninja
• 6,220 points
884 views
0 votes
1 answer

Is there a way to transfer files between AWS s3 and ec2

The answer is a definite yes yes. ...READ MORE

answered Apr 17, 2018 in Cloud Computing by brat_1
• 7,110 points
79 views
0 votes
1 answer

AWS Cloud9: Can we deploy only one Lambda function at a given time

Let us start understanding what happens when ...READ MORE

answered Apr 18, 2018 in Cloud Computing by code_ninja
• 6,220 points
125 views
0 votes
2 answers

Is there a way to copy AMI from one AWS account to another AWS account using boto?

You could share the AMI from one ...READ MORE

answered Aug 21, 2018 in Cloud Computing by Priyaj
• 57,300 points
397 views
0 votes
1 answer

Is there a way to use websockets for streaming S3 bucket?

I believe that’s not possible natively in ...READ MORE

answered May 10, 2018 in Cloud Computing by DragonLord999
• 8,380 points
326 views
0 votes
1 answer

Can someone tell if one Elastic IP address enough for every instance that I have running and would do the job?

Depends! Every instance comes with its own ...READ MORE

answered Jun 26, 2018 in Cloud Computing by brat_1
• 7,110 points
38 views
+3 votes
5 answers

AWS EFS vs EBS vs S3 (differences & when to use?)

EFS is: May not yet be available in ...READ MORE

answered Apr 9, 2018 in Cloud Computing by hemant
• 5,750 points
1,617 views
0 votes
1 answer

What are some of the popular DevOps Tools we can use or we should learn?

If you ask me, I would say ...READ MORE

answered Jul 23, 2018 in Cloud Computing by hemant
• 5,750 points
29 views