Update block device name for Amazon Linux 2

Amazon Linux 1 AMIs had a separate /dev/xvdcz volume used for Docker storage.
Amazon Linux 2 AMIs now only have a single root volume at /dev/xvda.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-storage-config.html
This commit is contained in:
Greg Lin 2022-08-26 14:41:10 -05:00
commit 27472d6bc3

View file

@ -80,7 +80,7 @@ rBuildsEcsLaunchTemplate:
LaunchTemplateName: r-builds-${self:provider.stage}-batch-managed-ecs-larger-volume
LaunchTemplateData:
BlockDeviceMappings:
- DeviceName: /dev/xvdcz
- DeviceName: /dev/xvda
Ebs:
VolumeType: gp3
VolumeSize: 96