- Newest
- Most votes
- Most comments
1st you should mask your AWS account number from the screen shot.
about your issue. looks like it is complaining about invalid function name.. you are trying to use lambda function name as order:${variable} are you sure about this?
For future people trying to fix this.
This is 100% a bug on AWS's side. HOWEVER, it's not the actual error that AWS is telling you. Even though it says that the route couldn't be updated and there was the above error. The route does in fact update and it does work correctly. So, I was stopped because I didn't go any further after the error? I mean, why would I? But if you do continue on the process and give all your lambdas the correct permissions. Then the stage variable does work. Despite AWS saying it failed to save.
yes stage variable should work. pls refer here https://aws.amazon.com/blogs/compute/using-api-gateway-stage-variables-to-manage-lambda-functions/ You might not able to test it on AWS API gateway test console but with actual stage deployed url your api will work appropriately.
thanks. but if I added the stageVariables like my first screenshot, error will be thrown as well, indicates failed to update the routes
failed to satisfy constraint: Member must satisfy regular expression pattern: (arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-]+)(:($LATEST|[a-zA-Z0-9-]+))?
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
thanks a lot. updated my question. I was trying to refer to a specific version of a lambda function. say if the alias is: qa, then there is a unique ARN for this versioned lambda