I created REST API using AWS API Gateway with following details
- Endpoint Type: Edge Optimized
- Integration Type: Mock
- The API is open with
- Auth: None
- Api Key Required: False
- Request Validator: None
- Resource-policy: Not defined
I successfully deployed the API
API is accessible from the outside world/ public network
API is not accessible from the EC2 instance launched in same account(Not tried to access it from other AWS account). API returns with 403 { "message": "Forbidden" }
What I am missing here which makes the API inaccessible from EC2 ?