Skip to content
link

GitHub Action

S3 Pre-Signed URL

v1.0.1 Latest version

S3 Pre-Signed URL

link

S3 Pre-Signed URL

GitHub Action to generate an AWS S3 PreSigned URL

Installation

Copy and paste the following snippet into your .yml file.

              

- name: S3 Pre-Signed URL

uses: anton-yurchenko/[email protected]

Learn more about this action in anton-yurchenko/s3-pre-signed-url

Choose a version

s3-pre-signed-url

Release Release License

Overview

GitHub Action to generate an AWS S3 PreSigned URL

      - name: Generate S3 PreSigned URL
        uses: anton-yurchenko/s3-pre-signed-url@v1
        id: s3
        with:
          access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
          secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          bucket: ${{ env.S3_BUCKET_NAME }}
          path: artifacts/bin/${{ env.FILENAME }}

      - run: echo ${{ steps.s3.outputs.url }}

Configuration

Input Default Value Description
region us-east-1 S3 bucket region
access_key none IAM User access key
secret_access_key none IAM User secret access key
bucket none S3 bucket name
path none Filepath (for example: artifacts/app.exe)
expires_in "300" Number of seconds until the pre-signed URL expires
Output Description
url PreSigned URL

Remarks

  • This action has multiple tags: latest / v1 / v1.2 / v1.2.3. You may lock to a certain version instead of using latest.
    (Recommended to lock against a major version, for example v1)

License

MIT © 2023-present Anton Yurchenko