def METHOD_NAME(ec2_client, name):
    desc = ec2_client.describe_security_groups(Filters=[{"Name": "tag-value", "Values": [name]}])
    if len(desc["SecurityGroups"]) == 0:
        return None
    else:
        return desc["SecurityGroups"][0]["GroupId"]