'Attach an Internet gateway to a VPC
:param      gateway: The gateway to attach
:type       gateway: :class:`.VPCInternetGateway`
:param      network: The VPC network to attach to
:type       network: :class:`.EC2Network`
:rtype:     ``bool``'

def ex_attach_internet_gateway(self, gateway, network):

    params = {'Action': 'AttachInternetGateway', 'InternetGatewayId': gateway.id, 'VpcId': network.id}
    res = self.connection.request(self.path, params=params).object
    return self._get_boolean(res)
