I have the following setup:
- A VPC in us-east-1
- An Endpoint for SSM in the VPC
- SG group blocks all outbound and inbound except my IP and self-reference
I was of the impression that you can ping/curl AWS services in a VPC with an endpoint so that you don't have to allow outbound rule that's open to 0.0.0.0 (or all the IPs for AWS services).
But when I try to run this from the instance:
curl https://ssm.us-east-1.amazonaws.com/
I'm not getting any response. What could be going wrong here?
Additionally, I want to access iam.amazonaws.com too but I cannot find any endpoint for IAM. How to access that via VPC?