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

Allow to specify multiple runtimes #23

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

Thorleon
Copy link
Contributor

As AWS supports ARM architecture for 20% billing saving serverless-go-plugin should allow to compile single bootstrap file for provided.al2 runtime.

@hexadecy
Copy link
Contributor

hexadecy commented Jan 31, 2022

Works well with this config:

custom:
  go:
    supportedRuntimes: provided.al2
    buildProvidedRuntimeAsBootstrap: true
    cmd: GOARCH=arm64 GOOS=linux go build -tags lambda.norpc -ldflags="-s -w"

functions:
  helloWorld:
    runtime: provided.al2
    architecture: arm64
    handler: main.go

@Thorleon
Copy link
Contributor Author

Thorleon commented Feb 8, 2022

Thanks @hexadecy for checking!

Just FYI: I have changed config field name from buildAsBootstrap to buildProvidedRuntimeAsBootstrap, rest should work in the same manner.

@mthenw mthenw merged commit 70ca59a into mthenw:master Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants