Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 940 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 940 Bytes

This Action uses a combination of configure-aws-credentials and ssm session manager to open a port forward to redshift, and then close the ssm session at the end of the action

Add the following to your action:

permissions:
      id-token: write   # This is required for requesting the JWT
      contents: read

Example usage:

- name: AWS Port Forward
        uses: GoodwayGroup/redshift-port-forward-action@main
        with:
          aws-region: REGION
          role-to-assume: IAM_ROLE_TO_ASSUME
          role-session-name: SESSION_NAME
          jumpbox-id: BASTION_HOST_INSTANCE_ID
          redshift-host: YOURHOST.redshift.amazonaws.com
          redshift-port: REDSHIFT_PORT

Documentation on oidc via Amazon/Github:

https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services