This is a follow-up to https://github.com/jclouds/jclouds/pull/1091 and 
particularly the comment at 
https://github.com/jclouds/jclouds/pull/1091#issuecomment-299202429:

> I have been trying this out and I think we will need to extend it for 
> practical purposes; if you want to create a VPC and subnet and then deploy a 
> machine on to it, you also need to jump through a few other hoops apart from 
> creating the subnet:
> 
> - modify the subnet attributes to permit auto-assign public IP 
> ("ModifySubnetAttribute")
> - create an Internet Gateway on the VPC ("CreateInternetGateway")
> - get and then modify the routing table of the subnet to add a public 
> (0.0.0.0/0) route through the newly added gateway ("CreateRoute" and friends)

There are three AWS APIs needed for the above, an `InternetGatewayApi`, a 
`RouteTableApi` and a method in the subnet API, I guess, for modifying 
attributes on subnets. This PR contains the `InternetGatewayApi`.  If this 
looks good, I can add the others.

@neykov, @andreaturli, this will be of interest to you.


You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds/pull/1097

-- Commit Summary --

  * Add an InternetGatewayApi to AWSEC2Api.

-- File Changes --

    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/AWSEC2Api.java (8)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/binders/BindInternetGatewayIdsToIndexedFormParams.java
 (32)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/domain/InternetGateway.java 
(84)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/domain/InternetGatewayAttachment.java
 (85)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/features/InternetGatewayApi.java
 (141)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/options/InternetGatewayOptions.java
 (64)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/DescribeInternetGatewaysResponseHandler.java
 (84)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/InternetGatewayAttachmentSetHandler.java
 (70)
    A 
providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/InternetGatewayHandler.java
 (100)
    A 
providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/InternetGatewayApiLiveTest.java
 (146)
    A 
providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/InternetGatewayApiMockTest.java
 (143)
    A providers/aws-ec2/src/test/resources/attach_internet_gateway.xml (5)
    A providers/aws-ec2/src/test/resources/attach_internet_gateway_failed.xml 
(5)
    A providers/aws-ec2/src/test/resources/create_internet_gateway.xml (9)
    A providers/aws-ec2/src/test/resources/delete_internet_gateway.xml (6)
    A providers/aws-ec2/src/test/resources/describe_internet_gateways.xml (37)
    A providers/aws-ec2/src/test/resources/detach_internet_gateway.xml (5)
    A providers/aws-ec2/src/test/resources/get_internet_gateway.xml (21)
    A providers/aws-ec2/src/test/resources/logback-test.xml (42)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/1097.patch
https://github.com/jclouds/jclouds/pull/1097.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1097

Reply via email to