Skip to content

Commit 9a814a7

Browse files
Fix HelloWorld Serverless template by removing the APIGateway event
1 parent 001b55a commit 9a814a7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Examples/LambdaFunctions/README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The `serverless-deploy.sh` script passes through any parameters to the Serverles
116116

117117
4. Testing
118118

119-
For the HelloWorld and APIGateway sample:
119+
For the APIGateway sample:
120120

121121
The Serverless template will provide an endpoint which you can use to test the Lambda.
122122

@@ -127,25 +127,30 @@ Outuput example:
127127
...
128128
Serverless: Stack update finished...
129129
Service Information
130-
service: helloworld-swift-aws
130+
service: apigateway-swift-aws
131131
stage: dev
132132
region: us-east-1
133-
stack: helloworld-swift-aws-dev
134-
resources: 11
133+
stack: apigateway-swift-aws-dev
134+
resources: 12
135135
api keys:
136136
None
137137
endpoints:
138-
GET - https://jm3b9p4bu2.execute-api.us-east-1.amazonaws.com/dev/hello
138+
GET - https://r39lvhfng3.execute-api.us-east-1.amazonaws.com/api
139139
functions:
140-
hello: helloworld-swift-aws-dev-hello
140+
httpGet: apigateway-swift-aws-dev-httpGet
141141
layers:
142142
None
143+
144+
Stack Outputs
145+
HttpGetLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:XXXXXXXXX:function:apigateway-swift-aws-dev-httpGet:1
146+
ServerlessDeploymentBucketName: apigateway-swift-aws-dev-serverlessdeploymentbuck-ud51msgcrj1e
147+
HttpApiUrl: https://r39lvhfng3.execute-api.us-east-1.amazonaws.com
143148
```
144149

145150
For example:
146151

147152
```
148-
curl https://jm3b9p4bu2.execute-api.us-east-1.amazonaws.com/dev/hello
153+
curl https://r39lvhfng3.execute-api.us-east-1.amazonaws.com/api
149154
```
150155

151156
***Warning:*** This Serverless template is only intended as a sample and creates a publicly accessible HTTP endpoint.

Examples/LambdaFunctions/serverless/HelloWorld-template.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,4 @@ provider:
1717
functions:
1818
hello:
1919
handler: HelloWorld
20-
memorySize: 128
21-
events:
22-
- http:
23-
method: GET
24-
path: /hello
25-
integration: lambda
20+
memorySize: 128

0 commit comments

Comments
 (0)