aws cli to list all ec2 server
aws ec2 --region ap-southeast-3 describe-instances --query 'Reservations[].Instances[].[Tags[?Key==`Name`].Value[] | [0], PrivateIpAddress, PublicIpAddress]' --output text
### aws cli to list all lightsail
aws lightsail get-instances --region ap-southeast-1 --query 'instances[].{name:name,createdAt:createdAt,blueprintId:blueprintId,blueprintName:blueprintName,publicIpAddress:publicIpAddress,InstanceID:supportCode}' --output table
### reboot server by force
aws lightsail reboot-instance --instance-name nama-instance --profile serverperushaan