Since I started using AWS ECS I have followed the AWS ECS reference architecture. This reference architecture uses Amazon Linux, and I would like to update to Amazon Linux 2, but I'm not sure what I'm required to do in order to make this transition successfully.
There is an issue on the GitHub repo for this reference architecture but it has not received any attention in months despite several people asking for help. From what I understand, here are some issues that need to be addressed when using the Amazon Linux 2 ECS optimized AMI:
sysvinit
is no longer supported on Amazon Linux 2;systemd
should be used instead.- Amazon Linux 2 stores docker logs in
journald
which is not currently supported by Cloud (described here)
I have an open source project that I am using to learn CloudFormation and AWS; here's a link to the ecs-cluster.yaml
file that describes the ECS cluster and container instance that I am trying to update.
I have heard that some people are using Amazon Linux 2 with ECS and I would like to update as well since support for Amazon Linux (1) ends in about 6 months. Does anyone know what other considerations I would need to make in order to use Amazon Linux 2 with ECS? Debugging this issue is time consuming and I'm not sure what options and configurations I should be trying.