Unable to resize ec2 ebs root volume
Basically the problem here is that you're tring to increase the size of the filesystem to fill up the partition, yet the partition hasn't actually increased in size.
The trick here will be to mount a snapshot of the volume onto a different instance as, say /dev/xdf. Then use parted or fdisk to remove the swap partition at /dev/xdf2.
parted /dev/xdf
rm 2
Then you can resize the other partition to fill the disk
parted /dev/xdf
resize 1
Then use the default for starting partition and an appropriate number for ending position. Then recreate the swap partition. Then if you run resize2fs /dev/sdf it should increase the size of the partition. Then unmount that disk and use it as the root volume of a new instance.