-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: using a single HTTP API Gateway for lambda function deployments (…
…#30) * feat: using a single HTTP API Gateway for lambda function deployments * fix: configure the domain properly and add /api to the path
- Loading branch information
1 parent
6a291e2
commit 4a2ce25
Showing
5 changed files
with
95 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { APIGatewayProxyEvent, APIGatewayProxyResult } from "aws-lambda"; | ||
|
||
export interface ProxyResponse { | ||
data: string; | ||
} | ||
|
||
export const handler = async ( | ||
event: APIGatewayProxyEvent | ||
): Promise<APIGatewayProxyResult> => { | ||
console.log(JSON.stringify(event, null, 2)); | ||
const response: ProxyResponse = { | ||
data: "Hello World Again!", | ||
}; | ||
return { | ||
statusCode: 200, | ||
body: JSON.stringify(response), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,21 @@ | |
"@aws-cdk/cx-api" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]": | ||
"@aws-cdk/aws-apigatewayv2-integrations@^1.92.0": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-apigatewayv2-integrations/-/aws-apigatewayv2-integrations-1.92.0.tgz#987d206bc518ff5a61475ab3755be5e64c80a5f5" | ||
integrity sha512-d0u2w5sP0zwnjesgmip5AntsjSPnDFYcnevKzSTKIe0MDnIOVg1HAZyVXeJGX/WBBC2eA5DS0GBndDqzr+VqMw== | ||
dependencies: | ||
"@aws-cdk/aws-apigatewayv2" "1.92.0" | ||
"@aws-cdk/aws-ec2" "1.92.0" | ||
"@aws-cdk/aws-elasticloadbalancingv2" "1.92.0" | ||
"@aws-cdk/aws-iam" "1.92.0" | ||
"@aws-cdk/aws-lambda" "1.92.0" | ||
"@aws-cdk/aws-servicediscovery" "1.92.0" | ||
"@aws-cdk/core" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]", "@aws-cdk/aws-apigatewayv2@^1.92.0": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-apigatewayv2/-/aws-apigatewayv2-1.92.0.tgz#cc9c7caf160e5bee99397de78297f499d3842acc" | ||
integrity sha512-BKM8x7SMDfefmdeUpnHhEx4ncTxBdL4MoZGaMkAibAcUk3Ok2vHEy2eWrl4jK8WTFYfUQivjsfnRFQk6755kZg== | ||
|
@@ -86,7 +100,7 @@ | |
"@aws-cdk/cx-api" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/aws-cloudfront-origins@^1.92.0": | ||
"@aws-cdk/[email protected]": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-cloudfront-origins/-/aws-cloudfront-origins-1.92.0.tgz#5d94b35de191234b31d7a53ac37ffd6a163f52ed" | ||
integrity sha512-UmgJxdcDsfdl3emPCggO7js90Hdnzb6iinFPu7ehiCSAprSGfyQ325VepwCe2vg1VGjZ4sIjZykrzIuSc7N84Q== | ||
|
@@ -381,6 +395,17 @@ | |
"@aws-cdk/cx-api" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-servicediscovery/-/aws-servicediscovery-1.92.0.tgz#0a2ba39f9898dd60c7ecb8eede48c523a95797db" | ||
integrity sha512-i99S157y0Y7lABd3xUXnh/o8f29q5V9wNI0RiWiDF3gVspt6GUlHgOodIhvZ+yO5kKYhzU8LNB76VCcrW7jSdQ== | ||
dependencies: | ||
"@aws-cdk/aws-ec2" "1.92.0" | ||
"@aws-cdk/aws-elasticloadbalancingv2" "1.92.0" | ||
"@aws-cdk/aws-route53" "1.92.0" | ||
"@aws-cdk/core" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-signer/-/aws-signer-1.92.0.tgz#c39e749079a5a965935a3e2ebfda4d8e055a3c5e" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,21 @@ | |
"@aws-cdk/cx-api" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]": | ||
"@aws-cdk/aws-apigatewayv2-integrations@^1.92.0": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-apigatewayv2-integrations/-/aws-apigatewayv2-integrations-1.92.0.tgz#987d206bc518ff5a61475ab3755be5e64c80a5f5" | ||
integrity sha512-d0u2w5sP0zwnjesgmip5AntsjSPnDFYcnevKzSTKIe0MDnIOVg1HAZyVXeJGX/WBBC2eA5DS0GBndDqzr+VqMw== | ||
dependencies: | ||
"@aws-cdk/aws-apigatewayv2" "1.92.0" | ||
"@aws-cdk/aws-ec2" "1.92.0" | ||
"@aws-cdk/aws-elasticloadbalancingv2" "1.92.0" | ||
"@aws-cdk/aws-iam" "1.92.0" | ||
"@aws-cdk/aws-lambda" "1.92.0" | ||
"@aws-cdk/aws-servicediscovery" "1.92.0" | ||
"@aws-cdk/core" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]", "@aws-cdk/aws-apigatewayv2@^1.92.0": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-apigatewayv2/-/aws-apigatewayv2-1.92.0.tgz#cc9c7caf160e5bee99397de78297f499d3842acc" | ||
integrity sha512-BKM8x7SMDfefmdeUpnHhEx4ncTxBdL4MoZGaMkAibAcUk3Ok2vHEy2eWrl4jK8WTFYfUQivjsfnRFQk6755kZg== | ||
|
@@ -381,6 +395,17 @@ | |
"@aws-cdk/cx-api" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-servicediscovery/-/aws-servicediscovery-1.92.0.tgz#0a2ba39f9898dd60c7ecb8eede48c523a95797db" | ||
integrity sha512-i99S157y0Y7lABd3xUXnh/o8f29q5V9wNI0RiWiDF3gVspt6GUlHgOodIhvZ+yO5kKYhzU8LNB76VCcrW7jSdQ== | ||
dependencies: | ||
"@aws-cdk/aws-ec2" "1.92.0" | ||
"@aws-cdk/aws-elasticloadbalancingv2" "1.92.0" | ||
"@aws-cdk/aws-route53" "1.92.0" | ||
"@aws-cdk/core" "1.92.0" | ||
constructs "^3.2.0" | ||
|
||
"@aws-cdk/[email protected]": | ||
version "1.92.0" | ||
resolved "https://registry.yarnpkg.com/@aws-cdk/aws-signer/-/aws-signer-1.92.0.tgz#c39e749079a5a965935a3e2ebfda4d8e055a3c5e" | ||
|