aws / amazon-ecs-init

Amazon Elastic Container Service RPM
http://aws.amazon.com/ecs
Apache License 2.0
200 stars 118 forks source link

anywhere install bugfix, add usage string #412

Closed sparrc closed 3 years ago

sparrc commented 3 years ago

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: