New AWS Lambda Console Code Editor!

AWS Developers · Beginner ·🔧 Backend Engineering ·1y ago

Key Takeaways

The new AWS Lambda Console features a code editor based on Visual Studio Code, allowing for a familiar coding experience with accessible and customizable interface, and integrates with Amazon Q for real-time AI suggestions and insights. Developers can use their preferred coding environment, install extensions, apply themes and settings, and use keyboard shortcuts, making it easier to develop and troubleshoot Lambda functions.

Full Transcript

do you want your Cloud IDE to look like your local IDE well Landis console now does using the popular Visual Studio code open- source code editor hi I'm Julian wood and in this video we'll show you exactly what this looks like now developers tell us that they like using the familiar vs code interface with its accessible and customizable interface which provides a coding experience that's similar to working with your function code locally you can install selected extensions apply your favorite themes and settings and use the keyboard shortcuts and coding preferences that you like you can also Now display larger function package sizes right within the console which is a big win and it also integrates with Amazon Q developer for realtime AI suggestions and insights to help you write understand and troubleshoot your Lambda functions more efficiently let's Jump Right In so the first thing I'm doing is launching the Lambda console and I have a new function I've created here funny enough called Lambda new console so if I was to scroll down a little bit over here I can see I have a what looks like a vs code interface and it's telling me I'm using the new Lambda console so immediately I can see this looks like vs code I've got the icons on the left I've got the Explorer bar in the middle and then the code on the right I'm using node.js so it's done the syntax highlighting you know what I expect in my local ID now looks like this in the cloud so really you know no context switching looks the same kind of way now another thing that is really cool is before you couldn't have large uh files in your in your project so if I had a large file it wouldn't be able to display here within the Lambda console and I wouldn't be able to change and edit my code so if I click here on the Big File icon I can see that well it's a big file and if I actually scroll down a little bit I can see that it is oh there's clicking on the big file and if actually scroll down a little but I can see here that the package size is 11 Meg so now I can actually even though it's a package size of 11 Meg because my code um file is under 3 Meg I'm able to view that in the console a standard uh vs code so I can look at the command pallet and I can look at all the Lambda specific things and you know pick a whole bunch of cool things that I'm able to do with lamba so the next thing I want to do is look at environment variables so I scroll down over here and I can see I can see the environment variables directly here in my console and I can select it and I can click edit on the environment variable and using the standard configuration I can amend the value from here and save that and you know that's available right within my visual view in the same kind of place so next up I want to do is I want to uh test my functions I'm going to click on the test button and I'm going to create a new test event let's just close that first so here let's create a new test event uh select that and in the same place again all in the same kind of window I'm able to view a um test event so yeah it's opened up and I can you know create a private event or a shared event and also handily over here I can look at a whole bunch of event templates so I'm building with API Gateway so I can select that from the template uh template down drop- down list and that's going to show the event Json which is going to be sent to my function and I can edit the query string parameters and handly one not just add my name going to save this I'm going to um give this a name and save that and I could save it as a private one or is sharable as well for other people to view in my account so I can then go and I can invoke this function here in the cloud I click on the little handy play button and this function invokes in the cloud and scrolling down over here I can see the response which has the my variable the U as the environment variable which I have read in my code so closing this let's have a look at Amazon Q so what I can do for Amazon Q right here in the console is I can just type a um a comment and invoke am in Q and this is going to suggest code to be able to read the query string parameters and I can carry on I want to also put it in the response so I'm going to get that query string parameters as part of the response and add that from Amazon Q really easy I didn't have to set anything else up save and then deploy the new version of the function so what I can do now is I can then test that uh function again and we have the same response but this time it now handily has my query sing parameters with my name included within the response so looking at some other kind of things that we can do you can see in the settings I have the keyboard bindings and also why not let's change the color theme to dark because that's what I use in my local IDE and it's just going to make it look the same so I have my local IDE over here Cloud IDE over here now looking all the dark mode what I can also do is under the run and debug is I can actually look at the open cloudwatch lives taale now this is actually really cool feature where even if I'm invoking it by myself or even if I'm invoking it from a some an external person hitting my API I'm able to live tail the logs in the console and there's another whole video which we can go which can explain how this all works but the next part I want to do is I actually want to download the function code I may have started in the console but really servess best practices is about working in your IDE to be able to deploy uh your software as part of cloud formation or as part of a software delivery life cycle so downloading the code in the S temp and the Sam template represents those cloud formation resources so click on the button going to be able to download a zip file which is going to include that code and the Sam template what I'm then going to do is I'm going to then switch over to my Lo local IDE and I can see here immediately first of all it looks the same so I was developing the cloud now I'm developing locally same dark mode it all looks very kind of similar and then once I'm in over here um I can also look at the application Builder View and I'm can show a visual template I can build my application I can deploy my application and do the whole kind of things locally which allows me to build my to work on my application also click on the play icon which opens up my local invok and debug configuration and what I can do here similarly in the cloud is I can select a sample event API Gateway in the stage you know I could edit the same as well also I could pick up a local event from an event file so this is a way that I could you know test my function locally and then I can go through the whole process of deploying it with a proper cloud formation stack and having full infrastructures code and that's a quick look at the Lambda console with its new vs code interface this is one of many developer experience improvements we're rolling out to make developing with Lambda easier if you enjoyed this video please give it a like and consider subscribing to AWS Developers for more Hands-On technical content see you next time

Original Description

AWS Lambda has a new code editing experience in the AWS console based on the popular Visual Studio Code Open Source code editor. This brings the familiar Visual Studio Code interface and many of the features directly into the Lambda console, allowing developers to use their preferred coding environment and tools in the cloud. 📚 Learn more: https://aws.amazon.com/blogs/compute/introducing-an-enhanced-in-console-editing-experience-for-aws-lambda/ Follow AWS Developers! 📺 Instagram: https://www.instagram.com/awsdevelopers/?hl=en 🆇 X: https://x.com/awsdevelopers 💼 LinkedIn: https://www.linkedin.com/showcase/aws-developers/ 👾 Twitch: https://twitch.tv/aws Follow Julian Wood! 🆇 X: https://x.com/julian_wood 💼 LinkedIn: https://www.linkedin.com/in/julianrwood/ 0:00 What's new 0:50 Showing the new code editor 1:24 Displaying larger package sizes 2:08 Editing environment variables 2:29 Creating test event 3:14 Invoke function 3:29 GenAI coding assistant using Amazon Q 4:06 Exploring additional settings 4:43 Downloading code and switching to local IDE 6:00 Outro #Lambda #awslambda #serverless
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from AWS Developers · AWS Developers · 0 of 60

← Previous Next →
1 Using Microsoft Active Directory across On-premises and Cloud Workloads
Using Microsoft Active Directory across On-premises and Cloud Workloads
AWS Developers
2 What is Cloud Computing with AWS? | Hebrew Webinar
What is Cloud Computing with AWS? | Hebrew Webinar
AWS Developers
3 Best Practices for Getting Started with AWS | Hebrew Webinar
Best Practices for Getting Started with AWS | Hebrew Webinar
AWS Developers
4 Best Practices for Using AWS Identity and Access Management (IAM) Roles
Best Practices for Using AWS Identity and Access Management (IAM) Roles
AWS Developers
5 Building Scalable Web Apps | Hebrew Webinar
Building Scalable Web Apps | Hebrew Webinar
AWS Developers
6 Dev & Test on the AWS Cloud | Hebrew Webinar
Dev & Test on the AWS Cloud | Hebrew Webinar
AWS Developers
7 Storage & Backup on AWS | Hebrew webinar
Storage & Backup on AWS | Hebrew webinar
AWS Developers
8 Disaster Recovery on AWS | Hebrew Webinar
Disaster Recovery on AWS | Hebrew Webinar
AWS Developers
9 AWS Israel News  | Episode 1
AWS Israel News | Episode 1
AWS Developers
10 Security Best Practices on AWS | Hebrew Webinar
Security Best Practices on AWS | Hebrew Webinar
AWS Developers
11 Ready: Introduction to AI on AWS | Hebrew Webinar
Ready: Introduction to AI on AWS | Hebrew Webinar
AWS Developers
12 Set: What is ML for developers? | Hebrew Webinar
Set: What is ML for developers? | Hebrew Webinar
AWS Developers
13 Go!: Building your own ChatBot with Amazon Lex | Hebrew Webinar
Go!: Building your own ChatBot with Amazon Lex | Hebrew Webinar
AWS Developers
14 And Beyond: Amazon Sagemaker | Hebrew Webinar
And Beyond: Amazon Sagemaker | Hebrew Webinar
AWS Developers
15 Building API-Driven Microservices with Amazon API Gateway - AWS Online Tech Talks
Building API-Driven Microservices with Amazon API Gateway - AWS Online Tech Talks
AWS Developers
16 Understanding AWS Secrets Manager - AWS Online Tech Talks
Understanding AWS Secrets Manager - AWS Online Tech Talks
AWS Developers
17 Best Practices for Building Enterprise Grade APIs with Amazon API Gateway - AWS Online Tech Talks
Best Practices for Building Enterprise Grade APIs with Amazon API Gateway - AWS Online Tech Talks
AWS Developers
18 Build, Train and Deploy Machine Learning Models on AWS with Amazon SageMaker - AWS Online Tech Talks
Build, Train and Deploy Machine Learning Models on AWS with Amazon SageMaker - AWS Online Tech Talks
AWS Developers
19 AWS Israel News | Episode 2 | re:Invent
AWS Israel News | Episode 2 | re:Invent
AWS Developers
20 AWS Floor28 News - January
AWS Floor28 News - January
AWS Developers
21 AWS Floor28 News - February - Hebrew
AWS Floor28 News - February - Hebrew
AWS Developers
22 AWS Floor28 News - March - Hebrew
AWS Floor28 News - March - Hebrew
AWS Developers
23 AWS Floor28 News - April - Hebrew
AWS Floor28 News - April - Hebrew
AWS Developers
24 AWS Floor28 News - May - Hebrew
AWS Floor28 News - May - Hebrew
AWS Developers
25 Authentication for Your Applications: Getting Started with Amazon Cognito - AWS Online Tech Talks
Authentication for Your Applications: Getting Started with Amazon Cognito - AWS Online Tech Talks
AWS Developers
26 AWS Floor28 News - June - Hebrew
AWS Floor28 News - June - Hebrew
AWS Developers
27 AWS Floor28 News - July - Hebrew
AWS Floor28 News - July - Hebrew
AWS Developers
28 Enriching your app with Image Recognition and AWS AI Services - AWS Webinar - Hebrew
Enriching your app with Image Recognition and AWS AI Services - AWS Webinar - Hebrew
AWS Developers
29 Personalize, Forcast, and Textract - AWS Webinar - Hebrew
Personalize, Forcast, and Textract - AWS Webinar - Hebrew
AWS Developers
30 Managing Your ML Development Lifecycle with Amazon SageMaker - AWS Webinar - Hebrew
Managing Your ML Development Lifecycle with Amazon SageMaker - AWS Webinar - Hebrew
AWS Developers
31 Running your ML code in Amazon Sagemaker - AWS Webinar - Hebrew
Running your ML code in Amazon Sagemaker - AWS Webinar - Hebrew
AWS Developers
32 Get Started in Minutes with Amazon Connect in Your Contact Center - AWS Online Tech Talks
Get Started in Minutes with Amazon Connect in Your Contact Center - AWS Online Tech Talks
AWS Developers
33 AWS Floor28 News - August - Hebrew
AWS Floor28 News - August - Hebrew
AWS Developers
34 AWS Floor28 News - September - Hebrew
AWS Floor28 News - September - Hebrew
AWS Developers
35 Deep Dive on Amazon EventBridge - AWS Online Tech Talks
Deep Dive on Amazon EventBridge - AWS Online Tech Talks
AWS Developers
36 Advanced Serverless Orchestration with AWS Step Functions - AWS Online Tech Talks
Advanced Serverless Orchestration with AWS Step Functions - AWS Online Tech Talks
AWS Developers
37 Living on the Edge - an Introduction to  Amazon CloudFront and Lambda@Edge  - Hebrew Webinar
Living on the Edge - an Introduction to Amazon CloudFront and Lambda@Edge - Hebrew Webinar
AWS Developers
38 AWS Floor28 News - October - Hebrew - YouTube
AWS Floor28 News - October - Hebrew - YouTube
AWS Developers
39 What's New with AWS Storage - AWS Online Tech Talks
What's New with AWS Storage - AWS Online Tech Talks
AWS Developers
40 How to Build a Compelling Migration Business Case Using TSO Logic - AWS Online Tech Talks
How to Build a Compelling Migration Business Case Using TSO Logic - AWS Online Tech Talks
AWS Developers
41 Configuring and Managing Amazon S3 Replication - AWS Online Tech Talks
Configuring and Managing Amazon S3 Replication - AWS Online Tech Talks
AWS Developers
42 AWS Floor28 News - November - Hebrew
AWS Floor28 News - November - Hebrew
AWS Developers
43 Using Relational Databases with AWS Lambda - Easy Connection Pooling - AWS Online Tech Talks
Using Relational Databases with AWS Lambda - Easy Connection Pooling - AWS Online Tech Talks
AWS Developers
44 AWS Floor28 News - December 2019 - Hebrew
AWS Floor28 News - December 2019 - Hebrew
AWS Developers
45 AWS Floor28 News - January 2020 - Hebrew
AWS Floor28 News - January 2020 - Hebrew
AWS Developers
46 Top 10 Data Migration Best Practices - AWS Online Tech Talks
Top 10 Data Migration Best Practices - AWS Online Tech Talks
AWS Developers
47 How to Use Azure Active Directory with AWS SSO - AWS Online Tech Talks
How to Use Azure Active Directory with AWS SSO - AWS Online Tech Talks
AWS Developers
48 AWS Tips & Tricks - Amazon Redshift Advisor - Hebrew
AWS Tips & Tricks - Amazon Redshift Advisor - Hebrew
AWS Developers
49 AWS Tips & Tricks - Amazon Redshift Elastic Resize - Hebrew
AWS Tips & Tricks - Amazon Redshift Elastic Resize - Hebrew
AWS Developers
50 AWS Tips & Tricks - Amazon Redshift Spectrum - Hebrew
AWS Tips & Tricks - Amazon Redshift Spectrum - Hebrew
AWS Developers
51 AWS Tips & Tricks - Savings Plans & Cost Explorer - Hebrew
AWS Tips & Tricks - Savings Plans & Cost Explorer - Hebrew
AWS Developers
52 AWS Tips & Tricks - Amazon Redshift Concurrency Scaling - Hebrew
AWS Tips & Tricks - Amazon Redshift Concurrency Scaling - Hebrew
AWS Developers
53 AWS Tips & Tricks - Training Models with Amazon SageMaker - Hebrew
AWS Tips & Tricks - Training Models with Amazon SageMaker - Hebrew
AWS Developers
54 AWS Tips & Tricks - Auto Model Tuning with Amazon SageMaker - Hebrew
AWS Tips & Tricks - Auto Model Tuning with Amazon SageMaker - Hebrew
AWS Developers
55 AWS Tips & Tricks - Amazon Comprehend - Hebrew
AWS Tips & Tricks - Amazon Comprehend - Hebrew
AWS Developers
56 Understanding High Availability and Disaster Recovery Features for Amazon RDS for Oracle
Understanding High Availability and Disaster Recovery Features for Amazon RDS for Oracle
AWS Developers
57 Amazon Forecast  – Forecasting  - From Months to Days (Hebrew)
Amazon Forecast – Forecasting - From Months to Days (Hebrew)
AWS Developers
58 Visualize your data with Amazon QuickSight (Hebrew)
Visualize your data with Amazon QuickSight (Hebrew)
AWS Developers
59 Amazon Kendra (Hebrew)
Amazon Kendra (Hebrew)
AWS Developers
60 AWS Floor28 News - AI/ML Special Edition
AWS Floor28 News - AI/ML Special Edition
AWS Developers

The new AWS Lambda Console features a Visual Studio Code-based code editor, allowing for a familiar coding experience and integration with Amazon Q for real-time AI suggestions and insights. This makes it easier to develop and troubleshoot Lambda functions, and enables developers to use their preferred coding environment.

Key Takeaways
  1. Launch the Lambda console and create a new function
  2. Use the Visual Studio Code interface to edit and customize code
  3. Install extensions and apply themes and settings
  4. Use keyboard shortcuts and coding preferences
  5. Test and debug Lambda functions using test events and API Gateway
  6. Integrate with Amazon Q for real-time AI suggestions and insights
  7. Download and deploy code using Cloud formation and SAM template
  8. Use CloudWatch for live logging and monitoring
💡 The new AWS Lambda Console code editor provides a familiar and customizable coding experience, making it easier to develop and troubleshoot serverless applications with AWS Lambda.

Related AI Lessons

Chapters (10)

What's new
0:50 Showing the new code editor
1:24 Displaying larger package sizes
2:08 Editing environment variables
2:29 Creating test event
3:14 Invoke function
3:29 GenAI coding assistant using Amazon Q
4:06 Exploring additional settings
4:43 Downloading code and switching to local IDE
6:00 Outro
Up next
Machine Learning Project for Final Year Students | ML Project Idea @FameWorldEducationalHub
FAME WORLD EDUCATIONAL HUB
Watch →