Skip to content

list aws ec2, rds, elasticache instances and reserved instances

Notifications You must be signed in to change notification settings

inavy/aws_ri_list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws_ri_list

list aws ec2, rds, elasticache instances and reserved instances generate xlsx file

install aws client

cli 安装

https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/install-cliv2-linux.html

cli 命令文档

https://docs.aws.amazon.com/zh_cn/cli/latest/reference/

create aws account and get ak/sk

https://github.com/inavy/aws_ri_list/blob/master/docs/get_ak_sk.md

add config

edit credentials

vi ~/.aws/credentials
[op_ri_nx]
aws_access_key_id = ak
aws_secret_access_key = sk

edit config

vi ~/.aws/config
[profile op_ri_nx]
region = cn-northwest-1
output = table

Requirements

pip3 install -r requirements.txt

# 国内加速
pip3 install -r requirements.txt -i https://pypi.doubanio.com/simple

run script

python3 get_aws_ri.py --profile op_ri_nx
python3 summary.py op_ri_nx summary_nx

sample

EC2/RDS/CACHE in different sheets.

detail

image

summary

image

About

list aws ec2, rds, elasticache instances and reserved instances

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages