| Key | Value |
|---|---|
| Services | API Gateway, Lambda, Route53, ACM |
| Integrations | Serverless Framework |
| Categories | Serverless; REST API |
A demo application showcasing API Gateway (v2) endpoints with custom domain names configured through Route53 and ACM, deployed locally using LocalStack and the Serverless framework. For more details, refer to the documentation.
Under the hood, the Serverless framework uses the serverless-localstack plugin to deploy the application to LocalStack. The plugin is configured in the serverless.yml file to use the LocalStack endpoint and the custom domain name.
- A valid LocalStack for AWS license. Your license provides a
LOCALSTACK_AUTH_TOKENto activate LocalStack. - Docker
localstackCLIawslocalCLI- Node.js 18.x with
npm - Serverless Framework 3.x
openssl
make checkmake installexport LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make startmake deployThe script:
- Generates an SSL certificate for local testing using
openssl. - Uses a predefined certificate if
opensslis unavailable. - Adds the certificate to Amazon Certificate Manager (ACM).
- Creates a Route53 hosted zone for
test.example.com. - Displays deployment logs of the Serverless application in the output section.
- Showcases API Gateway endpoints and custom domain configuration.
make runThis code is available under the Apache 2.0 license.