The file at /var/lib/amazon/ssm/registration is created by the ssm agent
but is not subsequently used. As such, when telling the ssm agent to
clear registration using 'amazon-ssm-agent -register -clear', this file
is not cleared.
The SSM vault file is actively managed by the SSM agent and it is
cleared when the instance is deregistered.
also removed the usage markdown file and added a --help flag to get the usage doc from the script itself:
access the usage using the --help flag
removed --ecs-endpoint flag doc, as this can be undocumented similar
to ECS_BACKEND_HOST env var for the ecs agent
moved startup checks to after flag parsing so that the --help flag can
be used without these checks happening
Implementation details
Testing
New tests cover the changes:
Description for the changelog
none
Licensing
This contribution is under the terms of the Apache 2.0 License:
Summary
The file at /var/lib/amazon/ssm/registration is created by the ssm agent but is not subsequently used. As such, when telling the ssm agent to clear registration using 'amazon-ssm-agent -register -clear', this file is not cleared.
The SSM vault file is actively managed by the SSM agent and it is cleared when the instance is deregistered.
also removed the usage markdown file and added a --help flag to get the usage doc from the script itself:
Implementation details
Testing
New tests cover the changes:
Description for the changelog
none
Licensing
This contribution is under the terms of the Apache 2.0 License: