Skip to content

Commit

Permalink
Update build instructions for AWS lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h committed Feb 9, 2024
1 parent 2054036 commit 13ec941
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
coverage.txt

# Lambda builds
main
archive.zip
bootstrap
archive.zip
8 changes: 0 additions & 8 deletions .idea/runConfigurations/Build_for_AWS_Lambda.xml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUILD_ENVS = GOARCH=amd64 GOOS=linux
BUILD_ENVS = GOARCH=arm64 GOOS=linux

aws_lambda:
${BUILD_ENVS} go build -o main cmd/main.go && zip archive.zip main
${BUILD_ENVS} go build -tags lambda.norpc -o bootstrap cmd/main.go && zip archive.zip bootstrap
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.20

require github.com/fre5h/transliteration-go v1.2.0

require github.com/aws/aws-lambda-go v1.38.0
require github.com/aws/aws-lambda-go v1.46.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/aws/aws-lambda-go v1.38.0 h1:4CUdxGzvuQp0o8Zh7KtupB9XvCiiY8yKqJtzco+gsDw=
github.com/aws/aws-lambda-go v1.38.0/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM=
github.com/aws/aws-lambda-go v1.46.0 h1:UWVnvh2h2gecOlFhHQfIPQcD8pL/f7pVCutmFl+oXU8=
github.com/aws/aws-lambda-go v1.46.0/go.mod h1:dpMpZgvWx5vuQJfBt0zqBha60q7Dd7RfgJv23DymV8A=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/fre5h/transliteration-go v1.2.0 h1:vnTyX1n8s4FnphYU3HrG1pz7j22pn0TdQqNXkXzpfBI=
github.com/fre5h/transliteration-go v1.2.0/go.mod h1:Lj7ckYuXFHSP9SNqsy9MIXA6RZ48YkETKtOxz6N97/Q=
Expand Down

0 comments on commit 13ec941

Please sign in to comment.