namespace: aws-api-gateway-examples
hello-function:
defines: aws-lambda/lambda-function
region: us-east-1
blob_name: hello-world-code
function_name: api-gw-hello-function
runtime: nodejs20.x
role: arn:aws:iam::123456789012:role/lambda-execution-role
handler: index.handler
services:
function:
protocol: custom
minimal-api:
defines: aws-api-gateway/api-gateway
region: us-east-1
name: minimal-http-api
protocol_type: HTTP
routes:
- path: /hello
method: ANY
integration:
type: lambda
function: \<- connection-target("lambda") entity-state get-member("function_arn")
services:
api:
protocol: custom
connections:
lambda:
runnable: aws-api-gateway-examples/hello-function
service: function
depends:
wait-for:
runnables:
- aws-api-gateway-examples/hello-function
timeout: 120