This PR updates the ECS-A installation script to make it work on AL2. It makes following changes to the script:
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
Testing
Launched a non ECS optimized AL2 instance and tested by running the script to join an ECS cluster as an external instance. Then ran a simple task on it and verified the exit code is as required for a successful task completion. Also checked userdata log to verify package installation
Description for the changelog
Licensing
This contribution is under the terms of the Apache 2.0 License:
Summary/Implementation details
This PR updates the ECS-A installation script to make it work on AL2. It makes following changes to the script:
Testing
Description for the changelog
Licensing
This contribution is under the terms of the Apache 2.0 License: