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

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Cash authored Feb 25, 2018
1 parent 02bf4c3 commit 128869e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# go-lambda-ping

A simple program that will build the infrastructure to ping a website.

## Building the Zip

In the `function` directory run `make release` to generate the binary and then zip it.

## Deploying the Lambda

1. Run `terraform init` to initialize the terraform repository.

2. Then run `terraform plan` to create the execution plan.

3. Finally, `terraform apply` to apply the changes (run the execution plan).


## Trigger the Lambda
```
aws lambda invoke \
--invocation-type RequestResponse \
--function-name demo_lambda \
--region us-east-1 \
--log-type Tail \
--payload '{"key1":"value1", "key2":"value2", "key3":"value3"}' \
outputfile.txt
```

0 comments on commit 128869e

Please sign in to comment.