Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Nov 18, 2023
2 parents d4e071b + 786be45 commit 6fe6e1a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/services/deployment/lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,13 @@ The response should be the following:

The body is the base64 encoded string of the response, and stands for `{"value":"Hello Pete"}`.

### Sending requests your Lambda function
### Sending requests to your Lambda function

#### Running the Restate runtime

You don't necessarily need to run the Restate runtime on AWS, but it does need to be able to obtain credentials to invoke your Lambd, but it does need to be able to obtain credentials to invoke your Lambda.
You can run the Restate runtime locally in a Docker container to test your Lambda function:
You don't necessarily need to run the Restate runtime on AWS, but it does need to be able to obtain credentials to invoke your Lambda.
You can run the Restate runtime locally in a Docker container to test your Lambda function, using your local AWS creds (defined in ~/.aws).

First, get AWS credentials into your environment:
```shell
export AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id)
export AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key)
```
If you use SSO, the AWS Rust SDK currently requires a minor change to your ~/.aws/config to support this;
see https://github.com/awslabs/aws-sdk-rust/issues/703#issuecomment-1811480196.

Expand Down

0 comments on commit 6fe6e1a

Please sign in to comment.