Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created March 31, 2022 18:32
Show Gist options
  • Save percybolmer/e82b9a7304b2828bdc0932b2e80b3a1f to your computer and use it in GitHub Desktop.
Save percybolmer/e82b9a7304b2828bdc0932b2e80b3a1f to your computer and use it in GitHub Desktop.
sam invoke
sam local invoke -e event.json
Invoking hello-gopher (go1.x)
Skip pulling image and use local one: public.ecr.aws/sam/emulation-go1.x:rapid-1.40.1-x86_64.
Mounting /home/percy/development/aws-sam-demo/demo/.aws-sam/build/HelloGopher as /var/task:ro,delegated inside runtime container
START RequestId: 50c407a8-9a71-4acc-a45b-2ad1d725c759 Version: $LATEST
END RequestId: 50c407a8-9a71-4acc-a45b-2ad1d725c759
REPORT RequestId: 50c407a8-9a71-4acc-a45b-2ad1d725c759 Init Duration: 0.21 ms Duration: 36.67 ms Billed Duration: 37 ms Memory Size: 128 MB Max Memory Used: 128 MB
"Hello From Lambda Percy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment