Skip to content

Couldn't find valid bootstrap(s) error #44

@ronberna

Description

@ronberna

Hello. I'm trying to update the runtime for serverless function from go.1x to provided.al2 using the serverless-go-plugin. I have the following configuration which deploys fine, but during runtime I get:

Error: Couldn't find valid bootstrap(s): [/var/task/bootstrap /opt/bootstrap] Runtime.InvalidEntrypoint

My serverless.yaml file basically looks like:
`...
provider:
name: aws
runtime: provided.al2
architecture: arm64
...
plugins:

  • serverless-go-plugin
    custom:
    go:
    cmd: GOARCH=arm64 GOOS=linux go build -ldflags="-s -w"
    supportedRuntimes: ["provided.al2"]
    buildProvidedRuntimeBootstrap: true
    functions:
    example:
    handler: myFunction
    ...`

I converted a different serverless function runtime from go1.x to provided.al2 using similar configuration which works. The only difference between the functions is that the one that works is using aws-sdk-go-v2 while this one, which is not working, is using aws-sdk-go. Would the version of aws-sdk-go cause this error? Any help on this would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions