We have this terraform code that automatically chooses the newest version of the amazon linux 2 ecs ami
data "aws_ami" "ecs" {
most_recent = true
owners = ["amazon"]
filter {
name = "owner-alias"
values = ["amazon"]
}
filter {
name = "name"
values = ["amzn2-ami-ecs-hvm-*-x86_64-*"]
}
}
After upgrading to Amazon Linux AMI 2.0.20251209 x86_64 ECS HVM GP2 yesterday, we noticed today that the available memory went from 7821MiB to 7817MiB on a m6i.large which caused us to not fit two containers on one instance.
Was this an intended change? Is there a way to avoid this happening in the future?