How to pass x-api-key to Appsync api

Hi,

I have a Supergraph successfully running with two apollo subgraphs.
Now i’m trying to add my Appsync API as a subgraph. I have done the required changes in my appsync graphql schema and published to supergraph. I can see the schema in supergraph, but when i try to perform operation i’m getting the error “You are not authorized to make this call”. I’m getting this error as i’m not passing the x-api-key to appsync API.

Can you please help me with how to pass the x-api-key header in this scenario. I tried adding the header while performing the operation from supergraph, but no luck.

Thanks,
Srikanth.