【文件属性】:
文件名称:price_of_ebs:该脚本提供了指定区域中EBS量的定价和容量摘要
文件大小:17KB
文件格式:ZIP
更新时间:2021-04-30 10:05:32
aws python3 pricing ebs cost-control
price_of_ebs
该脚本提供了指定区域中EBS卷的价格和容量摘要。 该脚本还能够识别未使用的EBS卷,打印其利用率和成本。
这个怎么运作
该脚本将提取指定区域中的所有EBS卷,并根据EBS类型将它们计数为类别。 然后,脚本从AWS Pricing API获取指定区域的当前EBS价格,并计算EBS每月支出。
要求
boto3
argparse
json
选项
这是脚本的帮助输出。
$ ./price_of_ebs.py --help
usage: price_of_ebs.py [-h] [-p PROFILE] [-i AWS_ID] [-k AWS_SECRET_KEY] [-v]
aws_region
Calculate price of EBS volumes in given region
positional argu
【文件预览】:
price_of_ebs-master
----LICENSE(34KB)
----README.md(5KB)
----price_of_ebs.py(12KB)