We got a requirement in AWS Api Gateway, that if we receive request with header (authorization) key exist in it, it should call one API and if authorization key ( key only not about keyValue) does not exist in header block it should call another API.
Flow I am visioning is - Apigateway -> (stepfunction/lambda) -> lambda
- For this I thought of using step functions but I am not sure how to pass total header block as input along with request from API Gateway to step function ?
- Any best solution to handle this scenarios. (evaluate key exist or not in header block)
- If step functions wont work ,I believe same issue goes with lambda usage as well, that how to pass total header block as input to lambda.
Really appreciate on any advise.