此工具可以列出当前账号下,所有的ec2实例信息
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:Describe*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "elasticloadbalancing:Describe*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudwatch:ListMetrics",
"cloudwatch:GetMetricStatistics",
"cloudwatch:Describe*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "autoscaling:Describe*",
"Resource": "*"
}
]
}
wlown@debian:~/golang/aws-ec2-cli$ ./aws-ec2-cli -key '1111111111111' -secret '222222222222'
10.80.0.124 nx-homepage-app00
10.81.200.225 nx-control-app01
10.81.0.29 nx-ldap-app01
10.81.200.15 nx-vpn-app01
10.80.200.252 nx-nat-1a