You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apigw-custom-domain/README.md
+40-47Lines changed: 40 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,68 +1,61 @@
1
-
# LocalStack Demo: API Gateway with Custom Domains
1
+
# API Gateway with Custom Domains
2
2
3
-
Simple demo application illustrating API Gateway (v2) endpoints using custom domain names (via Route53, ACM), deployed locally in LocalStack using the Serverless framework.
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](https://docs.localstack.cloud/user-guide/aws/apigateway/#custom-domain-names-with-api-gateway).
13
+
14
+
Under the hood, the Serverless framework uses the [`serverless-localstack`](https://github.com/localstack/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.
4
15
5
16
## Prerequisites
6
17
7
-
* LocalStack
8
-
* Docker
9
-
* Node.js / `npm`
10
-
*`make`
18
+
*[Node.js 18.x](https://nodejs.org/en/download/package-manager) with `npm`
Deploy the app locally and run a test invocation via:
27
-
```
28
-
make run
29
-
```
40
+
## Deploy the Application
30
41
31
-
The script first generates an SSL certificate for local testing (in case the `openssl` command is not available, it will use an existing, predefined certificate), and then adds it to Amazon Certificate Manager (ACM), and finally creates a Route53 hosted zone for the domain name `test.example.com`:
0 commit comments