-
-
Save daeho-ro/e0da95310451d2f7fd5a3f6b0e6e7060 to your computer and use it in GitHub Desktop.
change EBS volume type for all Volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ec2 describe-volumes --filters Name=volume-type,Values=gp2 | \ | |
jq -r .Volumes[].Attachments[].VolumeId | \ | |
while \ | |
read line; \ | |
do \ | |
aws ec2 modify-volume --volume-id $(echo $line) --volume-type gp3; \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment