Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Commit 128869e

Browse files
author
Frank Cash
authored
Create README.md
1 parent 02bf4c3 commit 128869e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# go-lambda-ping
2+
3+
A simple program that will build the infrastructure to ping a website.
4+
5+
## Building the Zip
6+
7+
In the `function` directory run `make release` to generate the binary and then zip it.
8+
9+
## Deploying the Lambda
10+
11+
1. Run `terraform init` to initialize the terraform repository.
12+
13+
2. Then run `terraform plan` to create the execution plan.
14+
15+
3. Finally, `terraform apply` to apply the changes (run the execution plan).
16+
17+
18+
## Trigger the Lambda
19+
```
20+
aws lambda invoke \
21+
--invocation-type RequestResponse \
22+
--function-name demo_lambda \
23+
--region us-east-1 \
24+
--log-type Tail \
25+
--payload '{"key1":"value1", "key2":"value2", "key3":"value3"}' \
26+
outputfile.txt
27+
```

0 commit comments

Comments
 (0)