Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for resizing root volume #17

Merged
merged 5 commits into from
Jun 7, 2024

Conversation

mahdi-torabi
Copy link
Contributor

This PR adds support for resizing root volume when launching an EC2 instance.

Limitations:

  • AMI used for launching instance must support EBS as root volume otherwise the action fails with an error indicating this requirement
# sudo df -h 
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  412K   16G   1% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/nvme0n1p1  128G  3.8G  125G   3% /
# sudo lsblk
/dev/nvme0n1p1  128G  3.8G  125G   3% /
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
nvme0n1       259:0    0  128G  0 disk 
|-nvme0n1p1   259:1    0  128G  0 part /
`-nvme0n1p128 259:2    0    1M  0 part 

@mahdi-torabi
Copy link
Contributor Author

Verified that volumes are automatically deleted after instance terminates.

@mahdi-torabi mahdi-torabi merged commit 835fa99 into main Jun 7, 2024
@mahdi-torabi mahdi-torabi deleted the add_support_for_resizing_root_volume branch June 7, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant