AWS/AWS Command Line Interface
Amazon EC2 종료 시간 확인 (CLI)
워니주니구니
2024. 5. 8. 10:54
728x90
SMALL
- 개요
EC2 인스턴스가 Launch 된 시간은 확인이 가능하지만 Off 된 시간은 콘솔에서 따로 확인 불가하다. 아래는 CLI를 통해 확인하는 방법이다.
- Amazon EC2 종료 시간 확인 (CLI)
aws ec2 describe-instances --filters "Name=instance-state-code,Values=80" --query 'Reservations[].Instances[].[Tags[?Key==`Name`] | [0].Value, InstanceId, PrivateIpAddress, State.Name, StateTransitionReason]' --output table
728x90
LIST