Skip to content

Commit

Permalink
Migrate to provided.al2 runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed Aug 27, 2023
1 parent c40d9c1 commit 1235892
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- run: go build
- run: make build

- run: make zip
- run: sls deploy
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
jiphy
.serverless
bootstrap
bootstrap.zip
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
env GOOS=linux GOARCH=arm64 go build -tags lambda.norpc -o bootstrap

zip:
zip -j bootstrap.zip bootstrap
5 changes: 3 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ service: jiphy

provider:
name: aws
runtime: go1.x
runtime: provided.al2
architecture: arm64
region: eu-west-1
iam:
role:
Expand All @@ -26,7 +27,7 @@ provider:

functions:
jiphy:
handler: jiphy
handler: bootstrap
url: true
environment:
DYNAMO_TABLE_NAME: ${env:DYNAMO_TABLE_NAME}
Expand Down

0 comments on commit 1235892

Please sign in to comment.