UPD: removing deleted file and pushing changed aws/aws-inventory2.sh

This commit is contained in:
xpk 2023-11-23 15:13:27 +08:00
parent 8724288247
commit 6ea0be7698
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@
function list-resources-in-region {
echo "---"
echo "# Region: $1"
echo "---"
echo "***"
echo -e "Region: $1"
echo "***"
echo -e "\n## EC2:"
aws --region=$1 ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId, Tags[?Key==`Name`].Value[] | [0], PlatformDetails, InstanceType,PrivateIpAddress]' --output json | jq -cr '.[][] | @tsv' | tr -d '[\" '