/kubectl-aws-rds-proxy

Proxy to AWS RDS Cluster or Instance via Kubernetes

Primary LanguageShellApache License 2.0Apache-2.0

kubectl aws-rds-proxy

Start socat with proxy in Kubernetes and forward local port to AWS RDS Cluster or Instance.

Installation

Pre-requirements

Using krew

kubectl krew index add wojtekk https://github.com/wojtekk/krew-index
kubectl krew install net-forward
kubectl krew install wojtekk/aws-rds-proxy

Using Curl

curl -LO https://github.com/wojtek/aws-rds-proxy/raw/master/kubectl-aws_rds_proxy
chmod +x ./kubectl-aws_rds_proxy
sudo mv ./kubectl-aws_rds_proxy /usr/local/bin/kubectl-aws_rds_proxy

Usage

Usage:
  kubectl aws-rds-proxy local_port:rds_db_identifier

Options
  --namespace   Kubectl Namespace
  --debug       Print debug information
  --help        Display help
  --version     Print version

Example

kubectl aws-rds-proxy 33061:my-rds-cluster-name
kubectl aws-rds-proxy 33062:my-rds-instance-name