[Bug]: Increase of root volume size of AMI in launch template block_device_mapping does not work on arm64 instances but on x86_64 #37559
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Terraform Core Version
1.8.2
AWS Provider Version
5.47.0
Affected Resource(s)
Expected Behavior
When I spawn an ec2 x86_64 instance (in this case it was m5zn.metal) via EC2 Fleet API and increase the root volume size via block_device_mapping block inside the aws_launch_template the actual device and partitions are enlarged and work as expected:
A default ubuntu 20.04 server AMI (x86_64) was used here. By default the AMI has a volume_size of 8GB. With the block_device_mapping is is increased to 40GB.
When I spawn an arm64 instance (c7g.metal) I expect the same behaviour. Also ubuntu server 20.04 AMI (arm64) is used. By default the AMI has a volume_size of 8GB.
Actual Behavior
However, when I spawn an arm64 instance (c7g.metal) I see that the actual volume is enlarged but the partition is not. There I have to increase the filesystem manually (see https://docs.aws.amazon.com/ebs/latest/userguide/recognize-expanded-volume-linux.html):
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: