Access AWS service using Python script and Boto3 by assuming role with Security Token Service (STS)
Вставка
- Опубліковано 10 вер 2024
- You can use AWS Security Token Service (STS) to assume an IAM role. Once the role is assumed, you get the permissions of that role. The credentials you get as part of assume role is temporary and you can set how long those credentials are valid.
You use the AWS SDK for Python (Boto3) to create, configure, and manage AWS services, such as Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Simple Storage Service (Amazon S3). The SDK provides an object-oriented API as well as low-level access to AWS services.
reference: boto3.amazonaw...
Python script - gist.github.co...
Blog - raaviblog.com
Want to Support (via Paypal): raaviblog@gmail.com
without access keys and secret access keys , is not not possible to access the s3 bucket ,using python boto3
amazing. just font size needs to be adjust.
Codes are not visible. Can you post the code somewhere?
Hey. Nice Explaination. I have a question. I am the admin user in the aws account. I don't have any access key and secret key. I want to access s3 using temporary credentials. is it possible?
No, this is NOT possible. You need secret access key and secret access key id to configure the profile. The sts client will then establish api call using the credentials of the profile. So, you need setup access key and secret key for sts client to work
Can you share code ,it is not visible