Go to the AWS Lambda console: https://console.aws.amazon.com/lambda.
For this example, choose the region us-east-1 (Northern Virginia).
In the navigation pane, on the left side of the console, select Functions (Functions).
Choose Create Function (Create Role).


exports.handler = async (event) => {
console.log("chamando função lambda...")
const response = {
statusCode: 200,
body: JSON.stringify('Testando o import e export de funções Lambda!'),
};
return response;
};


Your Lambda function was created successfully! We will now export it from the current region for further import into another region.