mirror of
https://github.com/apache/jclouds.git
synced 2025-02-12 13:06:14 +00:00
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`.
# # The jclouds provider for Amazon's EC2 (http://aws.amazon.com/ec2/). # # Expects the jclouds ec2 API to be present on your application's classpath. # # TODO: Implementation status. # TODO: Supported features. # TODO: Usage example.