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

КОМЕНТАРІ • 7

  • @shibasisdas1589
    @shibasisdas1589 6 місяців тому +1

    without access keys and secret access keys , is not not possible to access the s3 bucket ,using python boto3

  • @sandipram5022
    @sandipram5022 11 місяців тому +2

    amazing. just font size needs to be adjust.

  • @rahulverma9957
    @rahulverma9957 7 місяців тому

    Codes are not visible. Can you post the code somewhere?

  • @venkateshpolisetty8072
    @venkateshpolisetty8072 8 місяців тому

    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?

    • @pratikdas6807
      @pratikdas6807 7 місяців тому

      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

  • @anantababa
    @anantababa 11 місяців тому

    Can you share code ,it is not visible