Have it be called the EventsTable, with the primary key event_id.
Replace the ARN in the function with the SNS topic you are using for the application.
In the add, delete, and update functions, replace the ARN with the ARN of your SNS_lambda function, allowing for notifications for when an event is added/updated/deleted.
Create an /add_event resource
Create a /events resource
in the /events resource, create an /{event_id} resource
Add the LabRole as the Execution Role in Integration Request
Add these Response Headers under Method Respone
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Add this Header Mapping
Access-Control-Allow-Origin '*'
Add the LabRole as the Execution Role in Integration Request
Add this application/json as the Mapping template in Integration Request

Add these Response Headers under Method Respone
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Add this Header Mapping
Access-Control-Allow-Headers 'Content-Type'
Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'
Access-Control-Allow-Origin '*'
Add the LabRole as the Execution Role in Integration Request
Add this application/json as the Mapping template in Integration Request

Add these Response Headers under Method Respone
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Add this Header Mapping
Access-Control-Allow-Headers 'Content-Type'
Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'
Access-Control-Allow-Origin '*'
Add the LabRole as the Execution Role in Integration Request
Add this application/json as the Mapping template in Integration Request

Add these Response Headers under Method Respone
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Add this Header Mapping
Access-Control-Allow-Headers 'Content-Type'
Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'
Access-Control-Allow-Origin '*'
Click each resource, click the Enable CORS button and check all the boxes in Gateway Responses and Access-Control-Allow-Methods
Ensure that the OAuth 2.0 grant type is Implicit Grant.
Recommended to name the stage as 'dev', as that requires less adjustments to the index.html
Enable all public access, enable static website hosting, and add the bucket policy
Ensure the index.html as your API invoke URL as the server
- Deploy without Git
- Use Amazon S3 as the Method, and select the new S3 bucket you made with the index.html
- Save and deploy