From time to time you might face the issue when you’re running out of disk space on AWS EC2 instance.
There’re a couple of ways to fix it, but if you’re running single instance and if 5 min downtime is OK for you, here’s the simplest way to do it.
First of all check a current disk space (I have enough disk space on this box, but nevermind):
Shutdown instance (it’s not 100% necessary, but small downtime is OK in our case):
Initiate image creating:
Enter desired amount of the storage:
Go to Snapshots section and wait until it’s done (few minutes, but it depends on size):
Go to AMI section, select created image and Launch new instance from it:
Follow regular instance launching procedure (during launching you’re able to enter new size again if needed):
As soon as new instance is up & running login and check disk size, as you can see it’s desired 30Gb:
Check your service (If you use ElasticIP don’t forget to assign it to a new instance) and if it’s ok delete an old instance:
Now you can delete AMI or keep it as “backup” (I’ll definitely prefer to delete it):
And also delete snapshot:
That’s all for simple increasing disk space on AWS EC2.
I hope this info will be useful for you, and if you need any help feel free to use contact form on the main page.