Running an AWS Lambda function using the AWS Toolkit
In this section, we are going to run our Lambda function within PyCharm. Let’s follow the steps:
- Open AWS Toolkit on the left side of PyCharm and you will be able to see the Lambda functions that are defined in the AWS Lambda service. Seeing this means that the connection we configured works:
Figure 5.15 – Open the AWS Toolkit menu
In the list, we can see the functions that we created in the us-east-2 region. We are now ready to run the Lambda function that we created in the previous section.
- Right-click FileProcessing and, on the resulting menu, click the Run ‘[Remote] FileProcess...’ button:
Figure 5.16 – Run the function
When you click the link, the AWS Toolkit will run the Lambda function via PyCharm:
Figure 5.17 – Logs of the function
After running the function, some Lambda...