Enables detection of AL2 OS and set the DISTRO variable in the script accordingly when running on AL2 instances
Using the set DISTRO variable, bypass the 'yum install epel-release -y' command (if we don't, we get error here). This command is required for supporting Centos 7 for enabling installation of required packages (jq, docker). For AL2, these are enabled by default and not required
Bug Fix - Removes unrequired call to start ssm-agent - If $NO_START variable is true, the script should not start the ssm agent. But current behavior is that it will fall through the if else clause and the systemctl start "$SSM_SERVICE_NAME" is executed irrespective of the variable.
Testing
Using CI tests for AL2, Centos 7 and Ubuntu 20, both amd64 and arm64 platforms
New tests cover the changes: No new tests
Description for the changelog
Enable support for AL2 for ECS-Anywhere
Licensing
This contribution is under the terms of the Apache 2.0 License:
Summary
Merge changes to support al2 platform to dev
Implementation details
$NO_START
variable is true, the script should not start the ssm agent. But current behavior is that it will fall through the if else clause and thesystemctl start "$SSM_SERVICE_NAME"
is executed irrespective of the variable.Testing
Using CI tests for AL2, Centos 7 and Ubuntu 20, both amd64 and arm64 platforms
New tests cover the changes: No new tests
Description for the changelog
Enable support for AL2 for ECS-Anywhere
Licensing
This contribution is under the terms of the Apache 2.0 License: