Giter VIP home page Giter VIP logo

s3-pre-signed-url's Introduction

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

s3-pre-signed-url's People

Contributors

anton-yurchenko avatar dependabot[bot] avatar

Watchers

 avatar

s3-pre-signed-url's Issues

Unable to use presign URL

Describe the bug
The output of the presign URL does not work.

GitHub Actions workflow

- name: Generate S3 PreSigned URL
  uses: anton-yurchenko/s3-pre-signed-url@v1
  id: s3
  with:
    region: eu-central-1
    access_key: ${{ secrets.AWS_ACCESS_KEY }}
    secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
    bucket: ${{ inputs.bucket }}
    path: dumps/Corp-Root-CA-G2.zip
    expires_in: 300
- name: PreSigned URL
  run: echo ${{ steps.s3.outputs.url }}

Input values (please complete the following information):

  • Version: v1
  • region: eu-central-1
  • bucket: mbtointlogs
  • path: dumps/Corp-Root-CA-G2.zip
  • expires_in: 300

Expected behavior
the output should generate a presign URL which can be used to download the bucket file.

Screenshots
image

Additional context

  • self-hosted runner on linux EC2 instance Ubuntu 22.04 LTS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.