From the course: AWS Certified Data Engineer Associate (DEA-C01) Cert Prep

Unlock this course with a free trial

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

Hands-on learning: Run a SAM app using CloudShell

Hands-on learning: Run a SAM app using CloudShell

(light music) - [Instructor] Hey, guys, in this lesson, we're going to use AWS SAM, and we'll run a very simple SAM application. It's just a simple Hello, world! application that's built into SAM, and we're going to use CloudShell to actually execute it. So I've opened up CloudShell, and I also have this document in the course download. So you'll find it in the aws-lambda directory, sam-cli-commands.md First thing we need to do is we need to work out what version of Python CloudShell is actually using. Okay, in this case, it is 3.9. So we can see in the sam init command here that we're going to run, it's got python3.9 as the runtime. Now what you'll need to do is if that output is different, if it says 3.10 or 3.11, or whatever it might be, then just make sure you change the runtime here to match whatever is actually installed in CloudShell at the time you watch this video, okay? Now I've done this video before, even like couple of years ago. It's basically exactly the same except…

Contents