Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to provided.al2 runtime #16

Merged
merged 1 commit into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
build: export GOOS=linux
build:
go build -o bin/drain cmd/drain/main.go
@du -h bin/drain
GOOS=linux
GOARCH=amd64
CGO_ENABLED=0
export

build:
go build -tags lambda.norpc -o bootstrap cmd/drain/main.go
@du -h bootstrap

deploy: build
sls deploy -v

outdated-deps: ## get list of outdated direct dependencies
@go list -u -f '{{if and (.Update) (not .Indirect)}}{{.}}{{end}}' -m all
@go list -u -f '{{if and (.Update) (not .Indirect)}}{{.}}{{end}}' -m all
6 changes: 3 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package:

provider:
name: aws
runtime: go1.x
runtime: provided.al2
region: us-east-1
memorySize: 128
timeout: 900
Expand All @@ -26,12 +26,12 @@ provider:

functions:
main:
handler: bin/drain
handler: bootstrap
package:
exclude:
- ./**
include:
- ./bin/drain
- ./bootstrap
events:
- cloudwatchEvent:
event:
Expand Down