株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

aws ec2 describe-instances | jq -r '.Reservations[].Instances[] | [.InstanceId, (.Tags[] | select(.Key=="Name").Value),.State.Name] | @csv'
"i-0bea566068a15007b","Server1","stopped"
"i-04752c2087caa6f62","Server2","running"

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)