If you deploy CloudFormation stack, Lambda functions and API Gateway have already been made. You should put required part of these resources.
We know that one of our Lambda functions requires API Gateway. API Gateway provides endpoint for REST API, HTTP API and WebSocket API. It also has features like API caching, Throttling and operational benefits on API backend.
It plays a role of “Gateway” for Backend Lambda API on this Lab.
Move API Gateway menu on Console. (https://console.aws.amazon.com/apigateway)
Click “Create API”, select REST and set its name “GomokuAPI”. Endpoint should be Regional.
Creating API, you can find empty page. Firstly, make Resource and create Method on it. Click “Actions” button and make Resource.
Put ranking as Resource Name, and Enable API Gateway CORS. Click “Create Resource”.
Next step is creating method. Click “Actions” button and Create Method. You can see small list box below. Select “GET” and click check buttons next to it.
Choose Integration Type Lambda Function, and right region. Select game-rank-reader as Lambda Function. Click Save.
API was made. Now we should deploy this API to production stage. Click “Actions” and “Deploy API”.
Select [New Stage] and put Stage name “prod”. Click Deploy button to proceed.
Nextly, we are making static web site built on S3. You can easily host static web site!