ã¯ããã« ã¨ããããã¡ã¢ åè jq Manual 軽éJSONãã¼ãµã¼ãjqãã®ããã¥ã¡ã³ãï¼ãjq Manualãããã£ããæ¥æ¬èªè¨³ãã¦ã¿ã¾ãã AWS CLI aws-cli ãã¼ãã·ã¼ã ã¤ã³ã¹ã¿ã³ã¹ã®æ å ±ãåå¾ï¼1ï¼ ã¤ã³ã¹ã³ã¿ã³ã¹ã¸ ssh ã§ã¢ã¯ã»ã¹ããã®ã«å¿ è¦ãªæ å ±ãåå¾ããã aws ec2 describe-instances --filters Name=tag-value,Values="hogehoge*" |jq '.Reservations[].Instances[]|{InstanceId,PublicIpAddress,PrivateIpAddress,Tags}' ã¤ã³ã¹ã¿ã³ã¹ã®æ å ±ãåå¾ï¼2ï¼ ${instance_ID} ã® IP ã¢ãã¬ã¹ã¨ã¢ã¯ã»ã¹ã«å¿ è¦ãª ssh ãã¼ã®æ å ±ãåå¾ããã aws ec2 describe-instances --f
{{#tags}}- {{label}}
{{/tags}}