The current set up is:
- EC2 instance deployed in a VPC in subnet A.
- VPC Endpoint for execute-api in the same VPC in the same subnet (A)
- Private API Gateway with a resource policy to Allow both the VPC and VPC Endpoint to invoke the API
VPC has all its DNS settings enabled. DNS Hostnames & DNS resolution.
VPC Endpoint and EC2 instances both have allowed all traffic to port 443.
What am I missing here? The EC2 instance cannot seem to resolve the API via its https://(api ID).execute-api.(region).amazonaws.com/(api)