Aws "No space left on device"

Hi,

I arranged launch_block_device_mappings for 50GB but when the build finish I see the instance created from the aim root size is still 8GB. How can I increase the root partition’s size to 50GB for example?

fdisk  -l

Disk /dev/xvda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00050d75

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1        1045     8387584   83  Linux

ls

Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.8G 6.5G 952M 88% /
tmpfs 1.9G 0 1.9G 0% /dev/shm

packer

  launch_block_device_mappings {
     device_name           = "/dev/sda1"
    volume_size           = "50"
    volume_type           = "gp2"
    delete_on_termination = true
  }

  ami_block_device_mappings {
    device_name           = "/dev/sda1"
    volume_size           = "50"
    volume_type           = "gp2"
    delete_on_termination = true
  }