This action allows you to forward a port from a remote machine to your local machine using AWS SSM. For example, you can forward a port from an RDS instance to your local machine.
Name | Required | Description |
---|---|---|
target | true | The target instance ID |
host | true | The remote host to forward the port from |
port | true | The remote port to forward |
local-port | true | The local port to forward to |
Port forward from an RDS instance to your local machine.
name: Port forward
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ap-northeast-1
role-to-assume: arn:aws:iam::123456789012:role/role-name
- name: Port forward
uses: enkhjile/aws-ssm-remote-port-forwarding-action@v1
with:
target: i-1234567890abcdef0
host: my-rds-instance.123456789012.ap-northeast-1.rds.amazonaws.com
port: 3306
local-port: 3306
Contributions to this project are welcome. Please feel free to open an issue or a pull request.
The code in this project is licensed under MIT license.