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

Automatically enable tunnel for "tsh proxy db" #47716

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greedy52
Copy link
Contributor

@greedy52 greedy52 commented Oct 18, 2024

changelog: automatically enables "--tunnel" for "tsh proxy db" when local tunnel is required

before:

$ tsh proxy db dynamo-table-a --db-user steve-poweruser
ERROR: "tsh proxy db" is not supported when:
  - database protocol is DynamoDB.

Please use the following command to connect to the database:
    tsh proxy db --tunnel dynamo-table-a

after:

$ tsh proxy db dynamo-table-a --db-user steve-poweruser -p 8888
Note: "--tunnel" flag has been automatically enabled when:
  - database protocol is DynamoDB.
To avoid this note, please add the "--tunnel" flag to this "tsh proxy db" command.

Started authenticated tunnel for the DynamoDB database "dynamo-table-a" in cluster "teleport.dev.aws.stevexin.me" on 127.0.0.1:8888.

@greedy52
Copy link
Contributor Author

@GavinFrazar what's your thought on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant