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.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
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