Descriptionec2: Added NIC support for RunInstances
This extends RunInstances options to include
a list of NetworkInterfaceSpec options. They
allow specifying NICs to attach to instances
at launch time (either existing or new NICs).
It also adds SubnetId, VPCId, SourceDestCheck,
and NetworkInterfaces fields to the Instance
type, so Instances() and RunInstances() can
return the extended VPC-related information
for an instance.
If any NetworkInterfaceSpec options are provided,
or SubnetID is given, RunInstances() will use the
latest AWS API version (2013-10-15), otherwise it
uses the default version (2011-12-15).
Modified terminateInstances() test helper to wait
and retry when running against live EC2 servers,
to make sure the instances are really gone and
not left hanging after the test (leaking related
resources with them). In order for this to work
with the local testing server, a slight change
was made - when an instance is terminated, the
next time you fetch it with Instances(), it will
report "terminated" (thus simulating the real
state transition).
Added vpc-id and subnet-id filters to ec2test's
Instance and securityGroup types, and also changed
TestGroupFiltering and TestInstanceFiltering to
include tests for them.
Test double changed to support VPC security groups
and verify subnet ID in runInstances, as EC2 does.
Added NewInstancesVPC() method with vpcId and subnetId,
so VPC-enabled instances can be created in the test
server.
Added a TestRunInstancesVPC live test for the new
functionality (only live, because it's not worth
it to change the test double to create NICs in
runInstances()).
https://code.launchpad.net/~dimitern/goamz/vpc-instance-addons/+merge/205148
Requires: https://code.launchpad.net/~dimitern/goamz/nic-api-calls/+merge/204912
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : ec2: Added NIC support for RunInstances #
Total comments: 8
Patch Set 3 : ec2: Added NIC support for RunInstances #Patch Set 4 : ec2: Added NIC support for RunInstances #
Total comments: 12
Patch Set 5 : ec2: Added NIC support for RunInstances #
MessagesTotal messages: 9
|