Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Outline

Python script to convert EBS Volume

Python script to convert EBS volume from gp2 to gp3 or from io1 to io2 and read input from csv file with a format volume_id,volume_type

Usage

usage: ebs_volume_conversion.py [-h] [-f FILE] volume_id volume_type

positional arguments:
  volume_id             The EBS volume id of the Volume to be convert
  volume_type           The new EBS volume type to be converted gp3 or io2

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  A csv file containing ebs volume id and volume type to convert

Example

  1. To convert an ebs volume from gp2 to gp3
python3 ebs_volume_conversion.py -volume_id <vol-id> -volume_type gp3
  1. To convert an ebs volume from io1 to io2
python3 ebs_volume_conversion.py -volume_id <vol-id> -volume_type io2
  1. You can pass a csv file containing ebs volume id and volume type to convert
python3 ebs_volume_conversion.py -f ebs_volume.csv
Morty Proxy This is a proxified and sanitized view of the page, visit original site.