From the course: AWS Infrastructure as Code for Software Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Validating your deployed subnets

Validating your deployed subnets - Amazon Web Services (AWS) Tutorial

From the course: AWS Infrastructure as Code for Software Developers

Start my 1-month free trial

Validating your deployed subnets

- [Instructor] Now that our stack build is complete, let's go ahead and validate. We're going to go to our Console. I'll type vpc. Remember we did a destroy command, which is going to clear what we had and then start over. Okay, I'm looking at a demo, OurDemoVPC, and the CIDR range looks correct. I want it 10.1.0.0/16. I'll go back to the code and show you. It matches, okay. Let's see the subnets now. What's most interesting here that you'll notice is that we have four subnets instead of two. Let's go back to the code. I had exactly two subnet definitions here, but I also have two different availability zones specified here with max_azs. Because the AWS CDK is an opinionated framework, it decided that I needed two copies of the subnets. So in this case, I have an ApplicationSubnet1, and ApplicationSubnet2. And I will show you that they are indeed in different availability zones. ApplicationSubnet2 is located in…

Contents