Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no such file or directory: ~/.aws-gate/bin/session-manager-plugin when forwarding a session. #1064

Open
dannysteenman opened this issue Oct 7, 2021 · 0 comments

Comments

@dannysteenman
Copy link

dannysteenman commented Oct 7, 2021

I've installed both packages on my Mac (Big Sur)

brew tap xen0l/homebrew-taps
brew install aws-gate

# For installing session-manager-plugin via Homebrew (optional)
brew install --cask session-manager-plugin

However when I forward the port e.g. connect to RDS from my bastion:

aws-gate ssh -L 3306:rdsstack-dbclustdgf587f-1oogdfgezp2mu.cluster-1oogdfgezp2mu.eu-central-1.rds.amazonaws.com:3306 i-0ec5976f8889b1099

It tries to execute the session-manager-plugin from the .aws-gate/bin/ folder

zsh:1: no such file or directory: ~/.aws-gate/bin/session-manager-plugin

Brew installs the session-manager-plugin by default in /usr/local/bin/session-manager-plugin

For now I fixed it by doing:

cp -rp /usr/local/bin/session-manager-plugin ~/.aws-gate/bin/session-manager-plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant