Skip to content

Pull an EC2 console log using the AWS CLI api and jq

AWS provides a REST Api to everything they offer, and returns the results in Json format. If you have a server in a private network in a VPC, you might want to get the logs to see what happened at boot time, and the aws cli gives you a simple way of doing that:

CODE:
aws ec2 get-console-output --instance-id {i-xxxxxxxx}



Continue reading "Pull an EC2 console log using the AWS CLI api and jq"