I faced the the problem that some apache logs filled so quick that the root filesystem was not big enough.
I am using an AMI created with packer and centos 6.
How can I resize the root FS during the AMI creation to have it ready for later usage?
You can just add a Block Device Mapping insi
"launch_block_device_mappings": [ { "device_name": "/dev/xvda", "volume_type": "gp2", "volume_size": 20, "delete_on_termination": true } ]
You must check you AMI which device name use it could be /dev/sda1 or /dev/xvda
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With