https://serverless-stack.com/ logo
#help
Title
# help
j

Joe Kendal

10/27/2021, 2:10 PM
Has anyone run into an issue using versioned lambda ARNs for AppSync’s Custom Lambda Authorizer
t

thdxr

10/27/2021, 2:10 PM
Haven't tried this yet but what issue are you seeing?
j

Joe Kendal

10/27/2021, 2:12 PM
The use case is to prevent cold starts by using provisioned concurrency. Provisioned concurrency is only available to Versioned ARNs. This is the graphQL response:
Copy code
{
  "error": {
    "errors": [
      {
        "errorType": "BadRequestException"
      }
    ]
  }
}
This is indicative of a Java error so it is internal to AWS as my CloudWatch logs for the Authorizer are empty.
Switching to non-versioned ARN fixes this, although it means cold starts
I have opened a support ticket with AWS
t

thdxr

10/27/2021, 3:45 PM
Hm strange
I actually am avoiding this by using a middleware pattern inside my application code 🤫
Didn't want the added latency of invoking two functions