lib/ec2/right_ec2_vpc2.rb
# Associates a subnet with a route table. The subnet and route table must be in the same VPC. 
# This association causes traffic originating from the subnet to be routed according to the routes in
# the route table. The action returns an association ID, which you need if you want to disassociate 
# the route table from the subnet later. A route table can be associated with multiple subnets.
#
#  ec2.associate_route_table("rtb-be3006d7", "subnet-b95f76d0") #=> true
#
# P.S. http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/index.html?ApiReference-query-AssociateRouteTable.html  
#
Associates a subnet with a route table. The subnet and route table must be in the same VPC.
This association causes traffic originating from the subnet to be routed according to the routes in
the route table. The action returns an association ID, which you need if you want to disassociate
the route table from the subnet later. A route table can be associated with multiple subnets.




Associates a subnet with a route table . The subnet and route table must be in the same VPC . This association causes traffic originating from the subnet to be routed according to the routes in the route table . The action returns an association ID which you need if you want to disassociate the route table from the subnet later . A route table can be associated with multiple subnets .
def associate_route_table(route_table_id, subnet_id)
      request_hash = { 'RouteTableId' => route_table_id,
                       'SubnetId'     => subnet_id }
      link = generate_request("AssociateRouteTable", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def associate_route_table ( route_table_id , subnet_id ) request_hash = { 'RouteTableId' => route_table_id , 'SubnetId' => subnet_id } link = generate_request ( "AssociateRouteTable" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Associates a subnet with a route table.
Associates a subnet with a route table .
route_table_id
<not_specific>
subnet_id
<not_specific>