# Can't see correlation-id header in Lambdas

**URL:** <https://discuss.konghq.com/t/cant-see-correlation-id-header-in-lambdas/8151>\
**Category:** Questions\
**Created:** [April 1, 2021, 1:24am UTC](https://discuss.konghq.com/t/cant-see-correlation-id-header-in-lambdas/8151 "2021-04-01T01:24:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![server\_goblin](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@server\_goblin](https://discuss.konghq.com/u/server_goblin)\
**Post date:** [April 1, 2021, 1:24am UTC](https://discuss.konghq.com/t/cant-see-correlation-id-header-in-lambdas/8151/1 "2021-04-01T01:24:54Z")

</div>

I’m working on my first Kong installation. I’ve tested and verified every bit of functionality (various plugins, services, routes, etc) I need working, but there’s only one thing I can’t get working. I do know for certain that the correlation-id plugin _works_ , because I get the ID passed back downstream to the client (e.g. Postman, curl). However, my Lambdas are not getting the header. Is my expectation that I should be getting the header in my Lambda even correct?

My Lambdas do get any other arbitrary header I set from my client. They also get other headers being set by Kong such as “x-consumer-username”, “x-consumer-custom-id”, etc. My Lambda plugin is using these settings I think could be relevant:

awsgateway\_compatible: true  
forward\_request\_headers: true  
is-proxy\_integration: true

I’ve tried every combination of them on/off but it doesn’t make a difference.  
I’ve also tried setting the correlation-id plugin at the global, service, and route levels individually and simultaneously.

Does anyone have any advice for me at all?  
Thanks much for reading.

---

<div class="post-metadata">

**Author:** ![halley-nikolak](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/halley-nikolak/32/3490_2.png) [@halley-nikolak](https://discuss.konghq.com/u/halley-nikolak)\
**Post date:** [June 20, 2022, 9:45pm UTC](https://discuss.konghq.com/t/cant-see-correlation-id-header-in-lambdas/8151/2 "2022-06-20T21:45:17Z")

</div>

Hi, did you manage to fix this?

I had the same problem today and was able to fix it by changing the order of the plugins set on the service

```auto
services:
 - name: dl
   url: https://localhost:8443
   routes:
   - name: dl
     paths:
     - /dl
   plugins:
   - name: correlation-id
     config:
       header_name: X-Correlation-ID
       generator: uuid
       echo_downstream: true
   - name: basic-auth
     config: 
       hide_credentials: true
   - name: aws-lambda
     config:
       aws_key: XXXXXXXXXXXXXXXXXX 
       aws_secret: XXXXXXXXXXXXXXXXX
       aws_region: eu-west-X
       function_name: myLambdaFunction  
       forward_request_headers: true
       forward_request_uri: true
       forward_request_body: true
       forward_request_method: true
       is_proxy_integration: true

```
