Skip to content

Instantly share code, notes, and snippets.

@daeho-ro

daeho-ro/all.sh Secret

Created December 9, 2020 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daeho-ro/e0da95310451d2f7fd5a3f6b0e6e7060 to your computer and use it in GitHub Desktop.
Save daeho-ro/e0da95310451d2f7fd5a3f6b0e6e7060 to your computer and use it in GitHub Desktop.
change EBS volume type for all Volumes
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