NEW: ec2 csv inventory
This commit is contained in:
parent
7c773451be
commit
8c07b44fcf
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
aws ec2 describe-instances | jq -cr '.Reservations[].Instances[] | [.InstanceId,.PublicIpAddress,.PrivateIpAddress,(.Tags[] | select(.Key=="Name")| .Value), .InstanceType, .Placement.AvailabilityZone, .Platform, .State.Name] | @csv' > ec2-inventory.csv
|
||||
|
Loading…
Reference in New Issue