简体   繁体   中英

How to connect to an S3 bucket using a role ARN is C#

I was using AccessKeyId and secret to connect and manage my private S3 bucket, used by my application.

Devops is saying I need to use a role they have created for me specifically for this use case to eliminate the need for access and secret keys.

How do I assume a role to manage this S3 bucket access in my C# code?

I would think a role is created, a user is assigned that role. Using access/key you assume that user's rights and then you connect to AWS services.

Am I missing something?

A role is a short-term credentialed way of assigning privileges, normally to a service like Lambda, or an EC2 instance; you should assign the role you have been created to the instance from which you are accessing your S3 bucket.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM