drone-plugins / drone-s3

Drone plugin for publishing artifacts to Amazon S3
http://plugins.drone.io/drone-plugins/drone-s3
Apache License 2.0
36 stars 64 forks source link

Assume user role ARN #65

Closed jtallinger closed 2 years ago

jtallinger commented 3 years ago

Hi,

This pull request adds support for assuming ARN role after login, which is commonly needed when one AWS account have several internal setups (dev/qa/prod etc.). The changes here also automatically covers another pending pull request (https://github.com/drone-plugins/drone-s3/pull/64).

Example:

  - name: test
    image: drone/s3
    settings:
      bucket: test
      access_key:
        from_secret: aws_access_key_id
      secret_key:
        from_secret: aws_secret_access_key
      user_role_arn: arn:aws:iam::1234567890:role/ADFS_SOME_APP_SERVICE
      source: ./*
      target: /build-artifacts/
shubham149 commented 2 years ago

Added support for it as part of https://github.com/drone-plugins/drone-s3/pull/81