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

[feature] updating SSM agent from ssm-helpers #27

Open
sendqueery opened this issue Jul 17, 2020 · 1 comment
Open

[feature] updating SSM agent from ssm-helpers #27

sendqueery opened this issue Jul 17, 2020 · 1 comment

Comments

@sendqueery
Copy link
Collaborator

As a user of AWS SSM, in some cases, I may try and connect to an instance with an old version of the SSM agent. Because I may want or need to update the agent in order to use ssm-session, it would be nice to have the ability to use the update functionality of SSM to resolve this issue.

In some cases, the StartSession API may return a "TargetNotConnected" error. This indicates that "the specified target instance for the session is not fully configured for use with Session Manager", which can indicate several different issues, including an SSM agent version older than 2.3.68.0.

Fortunately, AWS provides an SSM document ("AWS-UpdateSSMAgent") that can be used to resolve the problem of an outdated agent. This could be implemented as an additional subcommand and/or as an extension of ssm-session.

@rothgar
Copy link
Collaborator

rothgar commented Jul 17, 2020

ssm run --document could be useful in general. We tested that with ssm scp functionallity in the past.

Specifically for AWS-UpdateSSMAgent it should probably be run via state manager scheduled associations as described here https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-state-cli.html

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