Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update APIGateway example to use AWSLambdaEvents #76

Merged
merged 4 commits into from
May 12, 2020

Conversation

fabianfett
Copy link
Member

Motivation

We now have an APIGateway request and response on board. Use it in the Sample.

Changes

  • This uses AWSLambdaEvents
  • Update sample to use APIGateway v2 HTTPAPI instead of RestAPI

@tomerd
Copy link
Contributor

tomerd commented May 8, 2020

@fabianfett looks good, but formatting issues. you can run the sanity script locally to see the error and fix it

let multiValueHeaders: [String: [String]]?
let body: String?
let isBase64Encoded: Bool?
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😸

@@ -30,13 +30,14 @@ let package = Package(
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
]),
.target(name: "Benchmark", dependencies: [
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
.product(name: "AWSLambdaRuntimeCore", package: "swift-aws-lambda-runtime"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fabianfett
Copy link
Member Author

@tomerd let me test this once on AWS before merging ;)

@fabianfett fabianfett force-pushed the update-apigateway-example-to-use-events branch from 2c99fd5 to a3759f5 Compare May 12, 2020 09:01
@fabianfett fabianfett force-pushed the update-apigateway-example-to-use-events branch from a3759f5 to 23b3971 Compare May 12, 2020 09:02
@fabianfett fabianfett marked this pull request as ready for review May 12, 2020 10:06
@fabianfett
Copy link
Member Author

@drexin Do you know whether we will get the static-stdlib linking in without the linker flags in Package.swift? This would allow us to make the story about deployment much easier.

/usr/lib/swift/linux/libswiftCore.so \
/usr/lib/swift/linux/libswiftDispatch.so \
/usr/lib/swift/linux/libswiftGlibc.so \
"$target"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabianfett can we rollback this one change for now? I would like to work on eliminating ICU for lambda then we can do a separate PR for that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomerd done!

Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one comment to rollback unrelated change we need to address separately

@fabianfett fabianfett force-pushed the update-apigateway-example-to-use-events branch from bf9e88b to 9b61a2e Compare May 12, 2020 18:41
@tomerd tomerd merged commit d3b7517 into master May 12, 2020
@tomerd tomerd deleted the update-apigateway-example-to-use-events branch May 12, 2020 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants