Step 2: Enable High Availability and Fault Tolerance
In this step of Getting Started Using Amazon MSK, you enable high availability and fault tolerance. To do so, you add two subnets to the virtual private cloud (VPC) that you created in the previous step. In this release of Amazon MSK, you need to specify three subnets in three distinct Availability Zones when you create a new cluster. In the previous step, you created a VPC with one subnet. In this step, you add two more subnets to your VPC.
To add subnets to your VPC
-
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
-
In the navigation pane, choose Subnets.
-
In the list of subnets, find AWSKafkaTutorialSubnet-1, and then find the column named Route table. Copy the value associated with AWSKafkaTutorialSubnet-1 in that column and save it for later.
-
Choose Create subnet.
-
For the Name tag, enter
AWSKafkaTutorialSubnet-2. -
For VPC, choose AWSKafkaTutorialVPC.
-
For Availability Zone, choose us-east-1b.
-
For IPv4 CIDR block, enter
10.0.1.0/24. -
Choose Create, and then choose Close.
-
Choose AWSKafkaTutorialSubnet-2 from the list of subnets by selecting the check box next to it. Ensure that no other check boxes in the list are selected.
-
In the subnet view near the bottom of the page, choose the Route Table tab, and then choose Edit route table association.
-
In the Route Table ID list, choose the route table whose value you copied earlier in this procedure.
-
Choose Save, and then choose Close.
-
Repeat this procedure to create another subnet with the name
AWSKafkaTutorialSubnet-3, in the us-east-1c Availability Zone, and with the IPv4 CIDR block set to10.0.2.0/24. -
Edit the route table for
AWSKafkaTutorialSubnet-3to ensure that it has the same route table used forAWSKafkaTutorialSubnet-1andAWSKafkaTutorialSubnet-2.
Next Step
Step 3: Create an Amazon MSK Cluster
