Skip to content

duplocloud/ghactions-aws-jit

Repository files navigation

Deprecation Warning

This is no longer actively maintained. Migrate to this action: duplocloud/actions/setup

ghactions-aws-jit status

Github action to get just-in-time access to AWS

This action will retrieve just-in-time AWS credentials from Duplo

Usage

Here is an example of what to put in your .github/workflows/build-and-deploy.yml file to use this workflow.

name: Build and Deploy
on:
  push:
    branches:
      - develop # branch to trigger on
jobs:
  deploy:
    # This example get AWS credentials, then lists all S3 buckets.
    name: Deploy with DuploCloud
    runs-on: ubuntu-latest
    steps:
      - name: aws-jit
        uses: duplocloud/ghactions-aws-jit@master
        with:
          duplo_host: https://mysystem.duplocloud.net
          duplo_token: ${{ secrets.DUPLO_TOKEN }}
          tenant: default
      - name: list-s3
        run: aws s3 ls