Skip to content

Commit 6345332

Browse files
Fix HelloWorld Serverless template by removing the APIGateway event
1 parent 724bd2c commit 6345332

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
@@ -120,7 +120,7 @@ The `serverless-deploy.sh` script passes through any parameters to the Serverles
120120

121121
4. Testing
122122

123-
For the HelloWorld and APIGateway sample:
123+
For the APIGateway sample:
124124

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

@@ -131,25 +131,30 @@ Outuput example:
131131
...
132132
Serverless: Stack update finished...
133133
Service Information
134-
service: helloworld-swift-aws
134+
service: apigateway-swift-aws
135135
stage: dev
136136
region: us-east-1
137-
stack: helloworld-swift-aws-dev
138-
resources: 11
137+
stack: apigateway-swift-aws-dev
138+
resources: 12
139139
api keys:
140140
None
141141
endpoints:
142-
GET - https://jm3b9p4bu2.execute-api.us-east-1.amazonaws.com/dev/hello
142+
GET - https://r39lvhfng3.execute-api.us-east-1.amazonaws.com/api
143143
functions:
144-
hello: helloworld-swift-aws-dev-hello
144+
httpGet: apigateway-swift-aws-dev-httpGet
145145
layers:
146146
None
147+
148+
Stack Outputs
149+
HttpGetLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:XXXXXXXXX:function:apigateway-swift-aws-dev-httpGet:1
150+
ServerlessDeploymentBucketName: apigateway-swift-aws-dev-serverlessdeploymentbuck-ud51msgcrj1e
151+
HttpApiUrl: https://r39lvhfng3.execute-api.us-east-1.amazonaws.com
147152
```
148153

149154
For example:
150155

151156
```
152-
curl https://jm3b9p4bu2.execute-api.us-east-1.amazonaws.com/dev/hello
157+
curl https://r39lvhfng3.execute-api.us-east-1.amazonaws.com/api
153158
```
154159

155160
***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)