def create_vpc(ec2_r, cidr_block, lab_tag):
    """ Create VPC using EC2 resource. """
    vpc = ec2_r.create_vpc(CidrBlock=cidr_block)
    vpc.wait_until_available()
    vpc.create_tags(Tags=[{
        "Key": "Name",
        "Value": lab_tag
    }])
    return vpc