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

Quiet option #1036

Open
jamesdmorgan opened this issue Sep 14, 2021 · 2 comments
Open

Quiet option #1036

jamesdmorgan opened this issue Sep 14, 2021 · 2 comments

Comments

@jamesdmorgan
Copy link

jamesdmorgan commented Sep 14, 2021

When using exec - would it be possible to add a -q quiet option so it just returns the value of the exec statement (omit the session info)

Or -s (silent) for a curl like approach

ret=$(aws-vault exec some-user -- aws-gate exec some-server "echo hello")

$ echo $ret
 Exiting session with sessionId: 1631645696961993000-0078449126a73e577.hello

I can get around it but it would be a more elegant solution.

Thanks!

@jamesdmorgan
Copy link
Author

jamesdmorgan commented Sep 15, 2021

Actually digging deeper this look like its aws/amazon-ssm-agent#358 so not at issue with aws-gate but more the ssm agent

@xen0l
Copy link
Owner

xen0l commented Jan 3, 2022

Hello @jamesdmorgan,

thanks for the feature request. I think it would be quite useful for scripting options, e.g. when one is only interested in the return code only. Though, as aws-gate uses plugin underneath, I would like to avoid modifying aws-gate directly.

Though, if there is enough interest, I think it should be possible directly in aws-gate as we are able to modify the output as needed.

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

2 participants