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.

Python CDK

Python CDK

All right. So here we're inside of AWS Cloud9, a perfect environment for working with CDK. First up, what I'm going to do is I'm going to run this official documentation command. Just make sure that I've got the right version of CDK. Okay, good. That's the latest version. Next step, I'm going to look at this initialization structure inside of a official AWS workshop. I'll go through here and copy this. I'll put this inside. This goes through and it makes this workshop directory. And notice now I'm inside of it. The next thing I'll do is I'll create a sample app. So we'll go through here, run this command. Now, I've got this sample app. I can scroll up here and make sure that I do what it tells me to do. So first step here, I create the virtual environment and I've sourced it. Great. And now the next thing I'm going to do is make sure that I install what's inside this requirements file. Let's take a look real quick. What's inside of here? This is all of the python code that lets me use…

Contents