Due to the go1.x runtime deprecation, I am trying to use the custom runtime provided.al2.
However, the endpoint now gives the error "Endpoint request timed out" after deployment.
Any advice is appreciated.
Here is my configuration:
service: my-service
frameworkVersion: '3'
provider:
name: aws
runtime: provided.al2
architecture: arm64
stage: ${opt:stage, 'dev'}
region: us-east-1
environment: ${file(.env.${self:provider.stage}.yml)}
package:
patterns:
- '!./**'
- './bin/**'
functions:
receive:
handler: receive/main.go
events:
- http:
path: ${self:custom.functionPath.${self:provider.stage}}/receive
method: post
timeout: 30
memorySize: 128
verify:
handler: verify/main.go
events:
- http:
path: ${self:custom.functionPath.${self:provider.stage}}/receive
method: get
timeout: 30
memorySize: 128
custom:
go:
supportedRuntimes: provided.al2
buildProvidedRuntimeAsBootstrap: true
cmd: GOARCH=arm64 GOOS=linux go build -tags lambda.norpc -ldflags="-s -w"
plugins:
- serverless-go-plugin
Due to the
go1.xruntime deprecation, I am trying to use the custom runtimeprovided.al2.However, the endpoint now gives the error "Endpoint request timed out" after deployment.
Any advice is appreciated.
Here is my configuration: