You can use resources in a virtual private cloud (VPC) as the backend service of an API and perform a VPC access authorization connectivity test to ensure high availability.
Elastic Compute Service (ECS) instances and Classic Load Balancer (CLB) instances in a VPC can be used as backend services of APIs. Process:
-
Use a resource in a VPC as the backend service of an API
-
Authorize access to and bind your VPC: To use a VPC resource as an API backend, you must first authorize API Gateway to access the resource. During authorization, specify the resource and port for API Gateway to access. This ensures secure communication between API Gateway and your service.
-
Build a high-availability architecture: Build a high-availability API architecture to ensure system reliability and stability. The linked topic provides detailed instructions.
-
FAQ: The linked topic also provides answers to commonly asked questions about the configuration.
-
-
VPC authorization connectivity test
Test the network connectivity between your API Gateway instance and the VPC resource. This helps identify and resolve network-related API call issues in advance during API debugging.