diff --git a/README.md b/README.md index d1c9d50..54ade64 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,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 (change the cron expression depending on how often you want this to run - if you aren't familiar with cron expressions, check out https://crontab.guru): diff --git a/build.sh b/build.sh index f1f0650..20aeb47 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file