Skip to content

S3 Signed URL

Actions
This action creates S3-compatible signed URL for the defined file in the bucket
v1.2.0
Latest
Star (1)

S3 Singed Url Action

Github Action for getting a signed url to access s3-compatible storage

Inputs

endpoint

Required endpoint to access s3-compatible storage

region

Required region of the bucket

aws_access_key_id

Required aws access key id

aws_secret_access_key

Required aws secret access key

bucket

Required bucket name

expires

Required signed url expiration time in seconds

file_path

Required path to the file in the bucket

Outputs

url

signed url

Example usage

Post content from static file

Let's assume the post markdown file is located at ./content/post.md.

name: get-signed-url
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: infraway/s3-signed-url-action@v1
        with:
          aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          bucket: ${{ vars.AWS_BUCKET }}
          endpoint: ${{ vars.AWS_ENDPOINT }}
          expires: '86400'
          file_path: content/post.md

S3 Signed URL is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action creates S3-compatible signed URL for the defined file in the bucket
v1.2.0
Latest

S3 Signed URL is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.