Skip to content

Commit

Permalink
Switches to arm64 for cheaper AWS bills
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatz committed Sep 13, 2023
1 parent 2dad219 commit 4f744f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Deployment instructions
It's recommended to deploy this to AWS as it's completely free for this use case.
1. Sign up for an AWS account
2. Create a Lambda function, make sure you select `go 1.x` as the runtime
2. Create a Lambda function, make sure you select `Custom runtime on Amazon Linux 2` as the runtime
3. Change the handler to `bootstrap`
4. Make sure the input is set to Event Bridge with the following settings (make sure to change the schedule to any time just **_before_** your game server is scheduled to restart - if you aren't familiar with cron expressions, check out https://crontab.guru):

Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rm lambda-handler.zip 2>/dev/null
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bootstrap ./cmd/lambda/main.go
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o bootstrap ./cmd/lambda/main.go
zip lambda-handler.zip bootstrap
rm bootstrap

0 comments on commit 4f744f3

Please sign in to comment.