We now create two subnets using the following steps:
- Provide a name for the first subnet to identify it.
- Input the CIDR of the first subnet as 10.0.0.0/24.
- Provide a name for the second subnet.
- Input the CIDR of the second subnet as 10.0.1.0/24.
We have now created two subnets. Both subnets will be private by default. Our aim is to make the first subnet a public subnet. For that, we need to create an internet gateway.