Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lionralfs/golang-lambda
https://github.com/lionralfs/golang-lambda
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lionralfs/golang-lambda
- Owner: lionralfs
- Created: 2023-07-07T15:40:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T22:49:40.000Z (about 1 year ago)
- Last Synced: 2023-12-19T05:32:49.784Z (about 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# local
```sh
docker-compose -f docker-compose-local.yaml up -d
``````sh
go run main.go
``````sh
docker build -t docker-image:test .
``````sh
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 --entrypoint /aws-lambda/aws-lambda-rie docker-image:test /main
``````sh
curl "http://localhost:9000/2015-03-31/functions/function/invocations" --data-binary "@test-input.json"
```# screw it, deploy
```sh
./deployment/deploy.sh
```# invoke via SNS
```sh
aws sns publish --topic-arn arn:aws:sns:eu-central-1::topic-for-golang-lambda --message '{"id":"1"}' --message-attributes '{"MyCustomAttribute" : { "DataType":"String", "StringValue":"some-value"}}' --no-cli-pager
```