Skip to content

Commit

Permalink
Update aws-go-lambda README (pulumi#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Zen authored Nov 18, 2020
1 parent 1eb47c4 commit 438f0cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aws-go-lambda/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AWS Golang Lambda
This example creates a lambda that does a simple `ToUpper` on the string input and returns it.
This example creates an AWS Lambda function that does a simple `ToUpper` on the string input and returns it.

## Deploying the App

Expand Down Expand Up @@ -50,6 +50,7 @@ After cloning this repo, run these commands from the working directory:
```

3. Set the required configuration variables for this program:

```bash
pulumi config set aws:region us-east-1
```
Expand All @@ -60,20 +61,21 @@ After cloning this repo, run these commands from the working directory:
pulumi up
```

5. Call our lambda function from the aws cli:
5. Call our Lambda function from the AWS CLI with "foo" as the payload:

```bash
aws lambda invoke \
--function-name $(pulumi stack output lambda) \
--region $(pulumi config get aws:region) \
--cli-binary-format raw-in-base64-out \
--payload '"foo"' \
output.json

cat output.json # view the output file with your tool of choice
# "FOO"
```

6. From there, feel free to experiment. Simply making edits, rebuilding your handler, and running `pulumi up` will update your lambda.
6. From there, feel free to experiment. Simply making edits, rebuilding your handler, and running `pulumi up` will update your function.

7. Afterwards, destroy your stack and remove it:

Expand Down

0 comments on commit 438f0cf

Please sign in to comment.