From the course: AI-Enhanced Coding with Amazon Q Developer

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Using Q Developer in Lambda: Demo

Using Q Developer in Lambda: Demo

- Lambda is a serverless compute service. Meaning that I have a piece of code that I want Amazon to execute for me. We've seen several examples of the square root function as we're messing around with Q Developer. Let's continue that experience here into Lambda, and we're going to tie in another service called API Gateway, and we're essentially going to create a rest API that we can then pass a number into, and receive back the square root of that. And we're going to use Q Developer in order to author the code for us. Now there are some caveats with using Q Developer in the Lambda console for code development. If you look at the user guide for Q, we can see here there is a page on using it with Lambda. This is important. The account that you are interacting with Lambda with in the Lambda console needs permissions to generate recommendations from Code Whisperer, the account that we created as part of our demos when we look at that user here in IAM. This user has the security…

Contents