Perform various checks
Perform various checks on EC2 instances.
Check if an instance can send traffic to the outside world:
yawsi ec2 inspect i-06d80024e0df241da --public-egress --verbose
✔ Checking for a route to 0.0.0.0/0
map[InstanceId:i-0685cbd9 NetworkInterfaceId:eni-ed43078a]
true
yawsi ec2 inspect i-06d80024e0df241da --public-egress
true
Check if the outside world can initiate communication with the EC2 instance:
yawsi ec2 inspect i-06d80024e0df241da --public-ingress
false
yawsi ec2 inspect i-06d80024e0df241da --public-ingress --verbose
✖ Checking if the instance has a Public IP address
false
Check if the outside world can initiate communication with a EC2 instance and vice-versa:
yawsi ec2 inspect i-06d80024e0df241da --public
false
yawsi.exe ec2 inspect i-06d80024e0df241da --public --verbose
✖ Outside world cannot initiate connection with the instance.
false
yawsi ec2 inspect [flags]
--debug Display debugging information about the result
-h, --help help for inspect
--public Can the outside world see me and vice-versa?
--public-egress Can I see the outside world?
--public-ingress Am I visible to the outside world (do I have a public IP)?
-v, --verbose Display more information about the result
- yawsi ec2 - Commands for working with AWS EC2
- yawsi ec2 inspect connectivity - Check connectivity between two EC2 instances on a port
- yawsi ec2 inspect routing-tables - Routing table entries associated with an instance