Amazon EC2 servers provide a simple and relatively cheap way of provisioning virtual machines on the fly. After much usage as the server host for this blog, my EC2 instance ran out of disk space. While I could spend time cleaning out logs, npm caches, unused project code, etc, storage these days is quite cheap so I can just increase the storage size.
- EC2 Server (Check out this article for instructions)
Locating the EBS Instance
Elastic Block Storage (aka EBS) is the AWS resource that provides storage for many AWS resources including EC2 servers. The EC2 server initializes and creates the EBS resources on creation so it can is not necessarily named the same as the server. Luckily in the AWS console, there is a link to the EBS resource from the EC2 description.
Navigate to the EC2 resource and select the server you want to increase the storage for.
On the Description tab scroll down to the "Root device" link and select the "/dev/sda1" link.
Then click on the "EBS ID" link to open the attached storage resource
With the EBS instance open right click on the row and select Modify Volume
And now you can change the size and click "Modify" to change the size.
This may take some time to take effect but after a few minutes then the EC2 server should show a larger storage size!
EC2 servers use Elastic Block Storage as the resource for its storage volumes. In this article, we saw how to add to the storage size so that the EC2 server has more storage capabilities.