Complete the code to specify the default port for Nginx gateway.
server {
listen [1];
server_name localhost;
}The default port for HTTP traffic in Nginx is 80.
Complete the code to define an AWS API Gateway REST API resource path.
Resources:
MyResource:
Type: AWS::ApiGateway::Resource
Properties:
[1]: /myresourceIn AWS API Gateway, the resource path segment is defined using PathPart.
Fix the error in the Kong configuration snippet to enable proxying to the upstream service.
services:
- name: example-service
url: http://[1]:8080
routes:
- name: example-route
paths:
- /exampleThe url field must point to the upstream service address. Using localhost is correct if the service runs locally.
Fill both blanks to configure Nginx to proxy requests to a backend service on port 5000.
location /api/ {
proxy_pass http://[1]:[2];
}Nginx proxies to the backend service running on localhost at port 5000.
Fill all three blanks to define an AWS API Gateway method with HTTP GET integration to a Lambda function.
Resources:
MyMethod:
Type: AWS::ApiGateway::Method
Properties:
HttpMethod: [1]
ResourceId: !Ref MyResource
Integration:
Type: [2]
IntegrationHttpMethod: [3]The method is GET, integration type is AWS_PROXY for Lambda proxy, and integration HTTP method is POST.