Removed ecs init rpm dependency on cloud-init.final: this is to allow the script to be ran in userdata (or by cloud-init in general);
Fixed ssm agent install error on suse due to gpg signature: added --no-gpg-checks option when install. the ssm agent gpg signature is a detached signature and we verify explicitly before install.
Added an optional flag --no-start: this is mainly for testing purpose so we can replace the agent being used for testing.
Implementation details
Described above.
Testing
Tested on ubuntu20, centos8 and opensuse15. Tested --no-start option working and ssm/docker/ecs agent can be started fine after the script with sudo systemctl start amazon-ssm-agent and sudo systemctl start ecs. Also checked that without --no-start the script still works fine.
Description for the changelog
N/A
Licensing
This contribution is under the terms of the Apache 2.0 License:
Summary
--no-gpg-checks
option when install. the ssm agent gpg signature is a detached signature and we verify explicitly before install.Implementation details
Described above.
Testing
Tested on ubuntu20, centos8 and opensuse15. Tested
--no-start
option working and ssm/docker/ecs agent can be started fine after the script withsudo systemctl start amazon-ssm-agent
andsudo systemctl start ecs
. Also checked that without--no-start
the script still works fine.Description for the changelog
N/A
Licensing
This contribution is under the terms of the Apache 2.0 License: