Launch function from aws lambda

Hi,
I have built an application that synchronizes information from a store manager. I can launch my function that require graphql when I open the application UI in my store. Now I am trying to call the same operation from aws lambda but I think I need to handle authentication.

This is the code I am trying to launch

export const action = async ({ request }) => {
const apiKey = await fetchApiKey();
const { admin } = await authenticate.admin(request);
updateNow(admin, apiKey);
return null;
}

How should I make the auth?

Thank you