Skip to content

Intro

In this section, you will utilize the three VPC’s with Internet Gateways, Transit Gateway, and EC2 instances that were created in the Multiple VPCs lab. You will set up VPC Flow logs for VPC A, generate some traffic, and then view the logs in CloudWatch.

Important

If you are running this lab in AWS Workshop Studio, the region has been set by your facilitator. The region you see in screenshots may not match your environment. This will not cause any problems.

If you are running this lab in your own AWS Account, it is recommended for all lab resources to be created in us-east-1 region so that the screenshots match your environment. This is not mandatory.

Prerequisites

If you have not completed the Multiple VPCs section...
  1. Complete the prerequisites section.

  2. Download the following CloudFormation template to create three VPCs connected by a Transit Gateway:

CloudFormation template

  1. Navigate to CloudFormation section in the AWS console. Click Create stack button and select With new resources (standard).

  2. Under Specify template, select Upload a template file, click Choose file and select the CloudFormation template that you downloaded above. Click Next.

  3. Enter the Stack name NetworkingWorkshopMultiVPCandTGW. Update the Parameter ParticipantIPAddress. Leave the other parameter defaults unchanged if you are running in us-east-1 and click Next. If you are running in another region, update the availability zones.
    CFN Stack Details

  4. Scroll to the bottom of the Configure stack options page and click Next again.
  5. Select the checkbox to acknowledge the creation of IAM resources and click the Submit button.
    Create stack
  6. The CloudFormation will begin deployment which you can follow by refreshing the Events and Resources tab.
  7. Once the CloudFormation template finishes lets go take a look at what it created. Click on the resources tab and you will find all the resources that were built as part of the CloudFormation stack.

This stack will create 3 VPCs each with two public subnets and two private subnets, a Transit Gateway to provide private connectivity between the VPCs, as well as EC2 instances in the VPCs.

Wait for the stack to be created before proceeding. This can take 3-5 minutes. Verify that the status in CloudFormation Console show as CREATE_COMPLETE, indicating successful creation of the stack.

Multiple VPCs created