Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build in a docker image and add a template.yaml for sam local testing.
- Loading branch information
1 parent
7b11fb8
commit 9e9e0d8
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
# aws-lambda-runtime | ||
|
||
## Local Testing | ||
|
||
### Dependencies | ||
|
||
- stack | ||
- docker | ||
- aws-sam-cli (>v0.8.0) | ||
|
||
### Build | ||
|
||
```bash | ||
stack build | ||
cp .stack-work/install/x86_64-linux-${docker_image_hash}/lts-12.21/8.4.4/bin/aws-lambda-runtime result/bootstrap | ||
``` | ||
|
||
### Execute | ||
|
||
```bash | ||
echo '{ "value": 7 }' | sam local invoke --region us-east-1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: 'AWS::Serverless-2016-10-31' | ||
Description: Test for the Haskell Runtime. | ||
Resources: | ||
helloworld: | ||
Type: 'AWS::Serverless::Function' | ||
Properties: | ||
Handler: NOT_USED | ||
Runtime: provided | ||
CodeUri: result | ||
Description: Test for the Haskell Runtime. | ||
MemorySize: 128 | ||
Timeout: 3 |