From the course: AWS Certified Advanced Networking – Specialty (ANS-C01) Cert Prep: 2 Network Implementation

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Command line interface demo

Command line interface demo

The AWS CloudShell is a great place to use the AWS CLI So if you type in a deep AWS help, you'll get a help menu here that shows the different things you can do with the AWS tools. One of the things that's a great use case for it is to invoke other services very quickly from the command line. Let's go over to Lambda and let's test this out. So I'm going to go ahead and call this MarcoPoloCLI, and I'm going to go ahead and choose Python runtime and create a function. Let's go ahead and change this up. And I'm going to change this to be a very simple function. And we'll go ahead and do this. We can say if events name is equal to Marco, return back. name Polo. Otherwise, let's just return back name No. All right. So we've got this application. I'm going to go out and deploy it. I'm going to build a test event here. And if we go ahead and we build this test event and we call this one Marco, we can just really quickly test it out and just say name. And say Marco, and this should return…

Contents