lib/ec2/right_ec2_vpc2.rb
# Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC. 
# 
#  ec2.attach_internet_gateway("igw-6585c10c", "vpc-df80a6b6") #=> true
#
# P.S. http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-AttachInternetGateway.html
#
Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC.


Attaches an Internet gateway to a VPC enabling connectivity between the Internet and the VPC .
def attach_internet_gateway(internet_gateway_id, vpc_id)
      request_hash = { 'InternetGatewayId' => internet_gateway_id,
                       'VpcId'             => vpc_id }
      link = generate_request("AttachInternetGateway", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def attach_internet_gateway ( internet_gateway_id , vpc_id ) request_hash = { 'InternetGatewayId' => internet_gateway_id , 'VpcId' => vpc_id } link = generate_request ( "AttachInternetGateway" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC.
Attaches an Internet gateway to a VPC enabling connectivity between the Internet and the VPC .
internet_gateway_id
<not_specific>
vpc_id
<not_specific>