Skip to content

Commit cb2cdde

Browse files
committed
fix typos on API GAteway example
1 parent f7584d1 commit cb2cdde

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Examples/APIGateway/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
name: "swift-aws-lambda-runtime-example",
1717
platforms: platforms,
1818
products: [
19-
.executable(name: "APIGAtewayLambda", targets: ["APIGAtewayLambda"])
19+
.executable(name: "APIGatewayLambda", targets: ["APIGatewayLambda"])
2020
],
2121
dependencies: [
2222
// dependency on swift-aws-lambda-runtime is added dynamically below
@@ -26,7 +26,7 @@ let package = Package(
2626
],
2727
targets: [
2828
.executableTarget(
29-
name: "APIGAtewayLambda",
29+
name: "APIGatewayLambda",
3030
dependencies: [
3131
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
3232
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),

Examples/APIGateway/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ swift package archive --allow-network-access docker
2626
```
2727

2828
If there is no error, there is a ZIP file ready to deploy.
29-
The ZIP file is located at `.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/MyLambda/MyLambda.zip`
29+
The ZIP file is located at `.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/APIGatewayLambda/APIGatewayLambda.zip`
3030

3131
## Deploy
3232

@@ -40,9 +40,9 @@ To actually deploy your Lambda function and create the infrastructure, type the
4040

4141
```bash
4242
sam deploy \
43-
----resolve-s3 \
43+
--resolve-s3 \
4444
--template-file template.yaml \
45-
--stack-name MyLambda \
45+
--stack-name APIGAtewayLambda \
4646
--capabilities CAPABILITY_IAM
4747
```
4848

@@ -54,7 +54,7 @@ The output is similar to this one.
5454
Outputs
5555
-----------------------------------------------------------------------------------------------------------------------------
5656
Key APIGAtewayEndpoint
57-
Description API Gateway endpoint UR"
57+
Description API Gateway endpoint URL"
5858
Value https://a5q74es3k2.execute-api.us-east-1.amazonaws.com
5959
-----------------------------------------------------------------------------------------------------------------------------
6060
```

Examples/APIGateway/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resources:
77
APIGAtewayLambda:
88
Type: AWS::Serverless::Function
99
Properties:
10-
CodeUri: .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/APIGAtewayLambda/APIGAtewayLambda.zip
10+
CodeUri: .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/APIGatewayLambda/APIGatewayLambda.zip
1111
Timeout: 60
1212
Handler: swift.bootstrap
1313
Runtime: provided.al2

0 commit comments

Comments
 (0)