cluster-discovery 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +9 -0
  5. data/.rubocop_todo.yml +62 -0
  6. data/Gemfile +26 -0
  7. data/Gemfile.lock +141 -0
  8. data/Guardfile +47 -0
  9. data/LICENSE +22 -0
  10. data/README.md +89 -0
  11. data/Rakefile +51 -0
  12. data/Thorfile +3 -0
  13. data/cluster-discovery.gemspec +26 -0
  14. data/lib/cluster/discovery/consul.rb +46 -0
  15. data/lib/cluster/discovery/ec2/auto_scaling.rb +27 -0
  16. data/lib/cluster/discovery/ec2/tag.rb +64 -0
  17. data/lib/cluster/discovery/errors.rb +21 -0
  18. data/lib/cluster/discovery/version.rb +6 -0
  19. data/lib/cluster/discovery.rb +38 -0
  20. data/spec/cassettes/Cluster_Discovery/_discover/can_discover_nodes/discovery_with_consul.yml +38 -0
  21. data/spec/cassettes/Cluster_Discovery_Consul/_discover/can_discover_all_nodes/can_discover_nodes_with_tags.yml +38 -0
  22. data/spec/cassettes/Cluster_Discovery_Consul/_discover/can_discover_all_nodes/can_discover_nodes_without_tags.yml +38 -0
  23. data/spec/cassettes/Cluster_Discovery_Consul/_discover/can_discover_leader_node/can_discover_nodes_with_tags.yml +38 -0
  24. data/spec/cassettes/Cluster_Discovery_Consul/_discover/can_discover_leader_node/can_discover_nodes_without_tags.yml +38 -0
  25. data/spec/cassettes/Cluster_Discovery_EC2_AutoScaling/_discover/can_reuse_the_tag_provider/can_find_instances_by_aws_auto_scaling_group.yml +191 -0
  26. data/spec/cassettes/Cluster_Discovery_EC2_Tag/_discover/passing_aws_region_arg/can_find_instances_by_tag.yml +862 -0
  27. data/spec/lib/cluster/discovery/consul_spec.rb +119 -0
  28. data/spec/lib/cluster/discovery/ec2/auto_scaling_spec.rb +19 -0
  29. data/spec/lib/cluster/discovery/ec2/tag_spec.rb +81 -0
  30. data/spec/lib/cluster/discovery_spec.rb +23 -0
  31. data/spec/spec_helper.rb +111 -0
  32. metadata +144 -0
@@ -0,0 +1,862 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://ec2.us-east-1.amazonaws.com/
6
+ body:
7
+ encoding: UTF-8
8
+ string: Action=DescribeInstances&Filter.1.Name=tag%3AService&Filter.1.Value.1=router&Filter.2.Name=instance-state-name&Filter.2.Value.1=running&Version=2015-10-01
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded; charset=utf-8
12
+ Accept-Encoding:
13
+ - ''
14
+ User-Agent:
15
+ - aws-sdk-ruby2/2.2.9 ruby/2.1.5 x86_64-darwin12.0
16
+ X-Amz-Date:
17
+ - 20160111T172140Z
18
+ Host:
19
+ - ec2.us-east-1.amazonaws.com
20
+ X-Amz-Security-Token:
21
+ - AQoDYXdzEPL//////////wEakAOIHyBWXKUSL/o67e19X2f6b3R5IfT50VtMAMHJeo6OPBKdVBFRwQFrTOkCyUAwfnfwkPjWIzoCAL6TTJewtyaYymXfedc6x5OMRUWFCtOOE7duwJPYzmCwLO1FatDkmBVQ1Z6C+i25uKaidguw+69yqUaFx4WyENy2aq13EkKzkWM1eoCNzI/udyAYV1VlZCEZYv+KKQpxxgr9ILrZSjeFtGo6pezTXsKm+JVAoOGrIi0NakleRp0P9B7EnfdO342wYuSbSgCOtiB/io0P/NXCMieXzoz8knvmXNAUjCM1XdIWS7PZRlUb/rAnzf3UI5UxUf6y6IQxpGl6SBdHeeljAU1WvIACPHhrEJQB4v0r2ZKhCSXI67ixUtSeBerLcSjd6dJVqgJxhBNpYNqCWOBFehYqcQusFw0T71UFTvBg7BDUCyeGzN/yIC7lly09jArytiSmJTkeYplXnkgsK7NeSTu1s7HKCiPxlB62XI2JXKfwhWLKhXCnv+COuqyWCwEjpESAAUOHWS94QCaaZ7WaIP+3z7QF
22
+ X-Amz-Content-Sha256:
23
+ - 540bac145df6ddfd002e15ac10c0743c6e8eed537423ef9657e06160bf96d0b7
24
+ Authorization:
25
+ - AWS4-HMAC-SHA256 Credential=ASIAJ2ARJRBMEBPXSZ2A/20160111/us-east-1/ec2/aws4_request,
26
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-security-token,
27
+ Signature=6d677f5617bd20fdecdfecd3140b0505fc037333c39547c18db08c0a9937687d
28
+ Content-Length:
29
+ - '154'
30
+ Accept:
31
+ - "*/*"
32
+ response:
33
+ status:
34
+ code: 200
35
+ message: OK
36
+ headers:
37
+ Content-Type:
38
+ - text/xml;charset=UTF-8
39
+ Transfer-Encoding:
40
+ - chunked
41
+ Vary:
42
+ - Accept-Encoding
43
+ Date:
44
+ - Mon, 11 Jan 2016 17:21:39 GMT
45
+ Server:
46
+ - AmazonEC2
47
+ body:
48
+ encoding: UTF-8
49
+ string: |-
50
+ <?xml version="1.0" encoding="UTF-8"?>
51
+ <DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
52
+ <requestId>8ba6ac1f-8ab5-4fc7-a9a6-b80e461326ed</requestId>
53
+ <reservationSet>
54
+ <item>
55
+ <reservationId>r-26fb9ff5</reservationId>
56
+ <ownerId>042293964381</ownerId>
57
+ <groupSet/>
58
+ <instancesSet>
59
+ <item>
60
+ <instanceId>i-1fb6aca9</instanceId>
61
+ <imageId>ami-b0210ed8</imageId>
62
+ <instanceState>
63
+ <code>16</code>
64
+ <name>running</name>
65
+ </instanceState>
66
+ <privateDnsName>ip-10-192-128-5.ec2.internal</privateDnsName>
67
+ <dnsName>ec2-54-86-50-158.compute-1.amazonaws.com</dnsName>
68
+ <reason/>
69
+ <keyName>sirwin</keyName>
70
+ <amiLaunchIndex>0</amiLaunchIndex>
71
+ <productCodes/>
72
+ <instanceType>t2.micro</instanceType>
73
+ <launchTime>2016-01-04T17:02:48.000Z</launchTime>
74
+ <placement>
75
+ <availabilityZone>us-east-1a</availabilityZone>
76
+ <groupName/>
77
+ <tenancy>default</tenancy>
78
+ </placement>
79
+ <monitoring>
80
+ <state>disabled</state>
81
+ </monitoring>
82
+ <subnetId>subnet-8a5088fc</subnetId>
83
+ <vpcId>vpc-b10863d5</vpcId>
84
+ <privateIpAddress>10.192.128.5</privateIpAddress>
85
+ <ipAddress>54.86.50.158</ipAddress>
86
+ <sourceDestCheck>false</sourceDestCheck>
87
+ <groupSet>
88
+ <item>
89
+ <groupId>sg-54e05c2d</groupId>
90
+ <groupName>sirwinspider-test-dev-vpc-NATRouterSG-N04NRRLWTZ2N</groupName>
91
+ </item>
92
+ </groupSet>
93
+ <architecture>x86_64</architecture>
94
+ <rootDeviceType>ebs</rootDeviceType>
95
+ <rootDeviceName>/dev/xvda</rootDeviceName>
96
+ <blockDeviceMapping>
97
+ <item>
98
+ <deviceName>/dev/xvda</deviceName>
99
+ <ebs>
100
+ <volumeId>vol-6311ca81</volumeId>
101
+ <status>attached</status>
102
+ <attachTime>2016-01-04T17:02:51.000Z</attachTime>
103
+ <deleteOnTermination>true</deleteOnTermination>
104
+ </ebs>
105
+ </item>
106
+ </blockDeviceMapping>
107
+ <virtualizationType>hvm</virtualizationType>
108
+ <clientToken>sirwi-NATRo-LMM5OESOSI8A</clientToken>
109
+ <tagSet>
110
+ <item>
111
+ <key>Service</key>
112
+ <value>router</value>
113
+ </item>
114
+ <item>
115
+ <key>Name</key>
116
+ <value>router-us-east-1a</value>
117
+ </item>
118
+ <item>
119
+ <key>aws:cloudformation:logical-id</key>
120
+ <value>NATRouter0</value>
121
+ </item>
122
+ <item>
123
+ <key>aws:cloudformation:stack-id</key>
124
+ <value>arn:aws:cloudformation:us-east-1:042293964381:stack/sirwinspider-test-dev-vpc/920d62a0-b304-11e5-a767-500c5240588e</value>
125
+ </item>
126
+ <item>
127
+ <key>Stack</key>
128
+ <value>sirwinspider-test-dev</value>
129
+ </item>
130
+ <item>
131
+ <key>aws:cloudformation:stack-name</key>
132
+ <value>sirwinspider-test-dev-vpc</value>
133
+ </item>
134
+ </tagSet>
135
+ <hypervisor>xen</hypervisor>
136
+ <networkInterfaceSet>
137
+ <item>
138
+ <networkInterfaceId>eni-3716d378</networkInterfaceId>
139
+ <subnetId>subnet-8a5088fc</subnetId>
140
+ <vpcId>vpc-b10863d5</vpcId>
141
+ <description/>
142
+ <ownerId>042293964381</ownerId>
143
+ <status>in-use</status>
144
+ <macAddress>0a:d8:11:ef:05:75</macAddress>
145
+ <privateIpAddress>10.192.128.5</privateIpAddress>
146
+ <privateDnsName>ip-10-192-128-5.ec2.internal</privateDnsName>
147
+ <sourceDestCheck>false</sourceDestCheck>
148
+ <groupSet>
149
+ <item>
150
+ <groupId>sg-54e05c2d</groupId>
151
+ <groupName>sirwinspider-test-dev-vpc-NATRouterSG-N04NRRLWTZ2N</groupName>
152
+ </item>
153
+ </groupSet>
154
+ <attachment>
155
+ <attachmentId>eni-attach-f52e801f</attachmentId>
156
+ <deviceIndex>0</deviceIndex>
157
+ <status>attached</status>
158
+ <attachTime>2016-01-04T17:02:48.000Z</attachTime>
159
+ <deleteOnTermination>true</deleteOnTermination>
160
+ </attachment>
161
+ <association>
162
+ <publicIp>54.86.50.158</publicIp>
163
+ <publicDnsName>ec2-54-86-50-158.compute-1.amazonaws.com</publicDnsName>
164
+ <ipOwnerId>amazon</ipOwnerId>
165
+ </association>
166
+ <privateIpAddressesSet>
167
+ <item>
168
+ <privateIpAddress>10.192.128.5</privateIpAddress>
169
+ <privateDnsName>ip-10-192-128-5.ec2.internal</privateDnsName>
170
+ <primary>true</primary>
171
+ <association>
172
+ <publicIp>54.86.50.158</publicIp>
173
+ <publicDnsName>ec2-54-86-50-158.compute-1.amazonaws.com</publicDnsName>
174
+ <ipOwnerId>amazon</ipOwnerId>
175
+ </association>
176
+ </item>
177
+ </privateIpAddressesSet>
178
+ </item>
179
+ </networkInterfaceSet>
180
+ <iamInstanceProfile>
181
+ <arn>arn:aws:iam::042293964381:instance-profile/razor/us-east-1/sirwinspider-test-dev/sirwinspider-test-dev-vpc-NATRouterRoleProfile-YU228Q0ULUH</arn>
182
+ <id>AIPAIK35YPSIXT52PBAEA</id>
183
+ </iamInstanceProfile>
184
+ <ebsOptimized>false</ebsOptimized>
185
+ </item>
186
+ </instancesSet>
187
+ </item>
188
+ <item>
189
+ <reservationId>r-6437628d</reservationId>
190
+ <ownerId>042293964381</ownerId>
191
+ <groupSet/>
192
+ <instancesSet>
193
+ <item>
194
+ <instanceId>i-5986f9a0</instanceId>
195
+ <imageId>ami-b0210ed8</imageId>
196
+ <instanceState>
197
+ <code>16</code>
198
+ <name>running</name>
199
+ </instanceState>
200
+ <privateDnsName>ip-10-192-128-62.ec2.internal</privateDnsName>
201
+ <dnsName>ec2-54-152-247-166.compute-1.amazonaws.com</dnsName>
202
+ <reason/>
203
+ <keyName>abegley</keyName>
204
+ <amiLaunchIndex>0</amiLaunchIndex>
205
+ <productCodes/>
206
+ <instanceType>t2.micro</instanceType>
207
+ <launchTime>2016-01-11T11:55:14.000Z</launchTime>
208
+ <placement>
209
+ <availabilityZone>us-east-1e</availabilityZone>
210
+ <groupName/>
211
+ <tenancy>default</tenancy>
212
+ </placement>
213
+ <monitoring>
214
+ <state>disabled</state>
215
+ </monitoring>
216
+ <subnetId>subnet-aba73296</subnetId>
217
+ <vpcId>vpc-832f5ee7</vpcId>
218
+ <privateIpAddress>10.192.128.62</privateIpAddress>
219
+ <ipAddress>54.152.247.166</ipAddress>
220
+ <sourceDestCheck>false</sourceDestCheck>
221
+ <groupSet>
222
+ <item>
223
+ <groupId>sg-b720b3ce</groupId>
224
+ <groupName>abegleyspider-test-1-vpc-NATRouterSG-120N4KDI519JP</groupName>
225
+ </item>
226
+ </groupSet>
227
+ <architecture>x86_64</architecture>
228
+ <rootDeviceType>ebs</rootDeviceType>
229
+ <rootDeviceName>/dev/xvda</rootDeviceName>
230
+ <blockDeviceMapping>
231
+ <item>
232
+ <deviceName>/dev/xvda</deviceName>
233
+ <ebs>
234
+ <volumeId>vol-9da1e555</volumeId>
235
+ <status>attached</status>
236
+ <attachTime>2016-01-11T11:55:18.000Z</attachTime>
237
+ <deleteOnTermination>true</deleteOnTermination>
238
+ </ebs>
239
+ </item>
240
+ </blockDeviceMapping>
241
+ <virtualizationType>hvm</virtualizationType>
242
+ <clientToken>abegl-NATRo-1ELFE4BLPH3UK</clientToken>
243
+ <tagSet>
244
+ <item>
245
+ <key>Service</key>
246
+ <value>router</value>
247
+ </item>
248
+ <item>
249
+ <key>Stack</key>
250
+ <value>abegleyspider-test-1</value>
251
+ </item>
252
+ <item>
253
+ <key>aws:cloudformation:stack-id</key>
254
+ <value>arn:aws:cloudformation:us-east-1:042293964381:stack/abegleyspider-test-1-vpc/cb562a10-b859-11e5-8aa2-500c5cc81217</value>
255
+ </item>
256
+ <item>
257
+ <key>Name</key>
258
+ <value>router-us-east-1e</value>
259
+ </item>
260
+ <item>
261
+ <key>aws:cloudformation:logical-id</key>
262
+ <value>NATRouter1</value>
263
+ </item>
264
+ <item>
265
+ <key>aws:cloudformation:stack-name</key>
266
+ <value>abegleyspider-test-1-vpc</value>
267
+ </item>
268
+ </tagSet>
269
+ <hypervisor>xen</hypervisor>
270
+ <networkInterfaceSet>
271
+ <item>
272
+ <networkInterfaceId>eni-c62e6ffa</networkInterfaceId>
273
+ <subnetId>subnet-aba73296</subnetId>
274
+ <vpcId>vpc-832f5ee7</vpcId>
275
+ <description/>
276
+ <ownerId>042293964381</ownerId>
277
+ <status>in-use</status>
278
+ <macAddress>06:e9:ec:0b:bc:51</macAddress>
279
+ <privateIpAddress>10.192.128.62</privateIpAddress>
280
+ <privateDnsName>ip-10-192-128-62.ec2.internal</privateDnsName>
281
+ <sourceDestCheck>false</sourceDestCheck>
282
+ <groupSet>
283
+ <item>
284
+ <groupId>sg-b720b3ce</groupId>
285
+ <groupName>abegleyspider-test-1-vpc-NATRouterSG-120N4KDI519JP</groupName>
286
+ </item>
287
+ </groupSet>
288
+ <attachment>
289
+ <attachmentId>eni-attach-c160fab0</attachmentId>
290
+ <deviceIndex>0</deviceIndex>
291
+ <status>attached</status>
292
+ <attachTime>2016-01-11T11:55:14.000Z</attachTime>
293
+ <deleteOnTermination>true</deleteOnTermination>
294
+ </attachment>
295
+ <association>
296
+ <publicIp>54.152.247.166</publicIp>
297
+ <publicDnsName>ec2-54-152-247-166.compute-1.amazonaws.com</publicDnsName>
298
+ <ipOwnerId>amazon</ipOwnerId>
299
+ </association>
300
+ <privateIpAddressesSet>
301
+ <item>
302
+ <privateIpAddress>10.192.128.62</privateIpAddress>
303
+ <privateDnsName>ip-10-192-128-62.ec2.internal</privateDnsName>
304
+ <primary>true</primary>
305
+ <association>
306
+ <publicIp>54.152.247.166</publicIp>
307
+ <publicDnsName>ec2-54-152-247-166.compute-1.amazonaws.com</publicDnsName>
308
+ <ipOwnerId>amazon</ipOwnerId>
309
+ </association>
310
+ </item>
311
+ </privateIpAddressesSet>
312
+ </item>
313
+ </networkInterfaceSet>
314
+ <iamInstanceProfile>
315
+ <arn>arn:aws:iam::042293964381:instance-profile/razor/us-east-1/abegleyspider-test-1/abegleyspider-test-1-vpc-NATRouterRoleProfile-12ZG1DOZZP6AH</arn>
316
+ <id>AIPAIYZZHXRAAWZN5SQPI</id>
317
+ </iamInstanceProfile>
318
+ <ebsOptimized>false</ebsOptimized>
319
+ </item>
320
+ </instancesSet>
321
+ </item>
322
+ <item>
323
+ <reservationId>r-cbeca322</reservationId>
324
+ <ownerId>042293964381</ownerId>
325
+ <groupSet/>
326
+ <instancesSet>
327
+ <item>
328
+ <instanceId>i-62daac9b</instanceId>
329
+ <imageId>ami-b0210ed8</imageId>
330
+ <instanceState>
331
+ <code>16</code>
332
+ <name>running</name>
333
+ </instanceState>
334
+ <privateDnsName>ip-10-192-128-41.ec2.internal</privateDnsName>
335
+ <dnsName>ec2-54-152-235-102.compute-1.amazonaws.com</dnsName>
336
+ <reason/>
337
+ <keyName>sirwin</keyName>
338
+ <amiLaunchIndex>0</amiLaunchIndex>
339
+ <productCodes/>
340
+ <instanceType>t2.micro</instanceType>
341
+ <launchTime>2016-01-04T17:02:48.000Z</launchTime>
342
+ <placement>
343
+ <availabilityZone>us-east-1e</availabilityZone>
344
+ <groupName/>
345
+ <tenancy>default</tenancy>
346
+ </placement>
347
+ <monitoring>
348
+ <state>disabled</state>
349
+ </monitoring>
350
+ <subnetId>subnet-72c8404f</subnetId>
351
+ <vpcId>vpc-b10863d5</vpcId>
352
+ <privateIpAddress>10.192.128.41</privateIpAddress>
353
+ <ipAddress>54.152.235.102</ipAddress>
354
+ <sourceDestCheck>false</sourceDestCheck>
355
+ <groupSet>
356
+ <item>
357
+ <groupId>sg-54e05c2d</groupId>
358
+ <groupName>sirwinspider-test-dev-vpc-NATRouterSG-N04NRRLWTZ2N</groupName>
359
+ </item>
360
+ </groupSet>
361
+ <architecture>x86_64</architecture>
362
+ <rootDeviceType>ebs</rootDeviceType>
363
+ <rootDeviceName>/dev/xvda</rootDeviceName>
364
+ <blockDeviceMapping>
365
+ <item>
366
+ <deviceName>/dev/xvda</deviceName>
367
+ <ebs>
368
+ <volumeId>vol-7eb7c5b6</volumeId>
369
+ <status>attached</status>
370
+ <attachTime>2016-01-04T17:02:50.000Z</attachTime>
371
+ <deleteOnTermination>true</deleteOnTermination>
372
+ </ebs>
373
+ </item>
374
+ </blockDeviceMapping>
375
+ <virtualizationType>hvm</virtualizationType>
376
+ <clientToken>sirwi-NATRo-459U5DKT5U2T</clientToken>
377
+ <tagSet>
378
+ <item>
379
+ <key>Service</key>
380
+ <value>router</value>
381
+ </item>
382
+ <item>
383
+ <key>aws:cloudformation:stack-id</key>
384
+ <value>arn:aws:cloudformation:us-east-1:042293964381:stack/sirwinspider-test-dev-vpc/920d62a0-b304-11e5-a767-500c5240588e</value>
385
+ </item>
386
+ <item>
387
+ <key>Name</key>
388
+ <value>router-us-east-1e</value>
389
+ </item>
390
+ <item>
391
+ <key>aws:cloudformation:stack-name</key>
392
+ <value>sirwinspider-test-dev-vpc</value>
393
+ </item>
394
+ <item>
395
+ <key>Stack</key>
396
+ <value>sirwinspider-test-dev</value>
397
+ </item>
398
+ <item>
399
+ <key>aws:cloudformation:logical-id</key>
400
+ <value>NATRouter1</value>
401
+ </item>
402
+ </tagSet>
403
+ <hypervisor>xen</hypervisor>
404
+ <networkInterfaceSet>
405
+ <item>
406
+ <networkInterfaceId>eni-01d0a33d</networkInterfaceId>
407
+ <subnetId>subnet-72c8404f</subnetId>
408
+ <vpcId>vpc-b10863d5</vpcId>
409
+ <description/>
410
+ <ownerId>042293964381</ownerId>
411
+ <status>in-use</status>
412
+ <macAddress>06:4f:9b:63:ba:3d</macAddress>
413
+ <privateIpAddress>10.192.128.41</privateIpAddress>
414
+ <privateDnsName>ip-10-192-128-41.ec2.internal</privateDnsName>
415
+ <sourceDestCheck>false</sourceDestCheck>
416
+ <groupSet>
417
+ <item>
418
+ <groupId>sg-54e05c2d</groupId>
419
+ <groupName>sirwinspider-test-dev-vpc-NATRouterSG-N04NRRLWTZ2N</groupName>
420
+ </item>
421
+ </groupSet>
422
+ <attachment>
423
+ <attachmentId>eni-attach-8b6dfefa</attachmentId>
424
+ <deviceIndex>0</deviceIndex>
425
+ <status>attached</status>
426
+ <attachTime>2016-01-04T17:02:48.000Z</attachTime>
427
+ <deleteOnTermination>true</deleteOnTermination>
428
+ </attachment>
429
+ <association>
430
+ <publicIp>54.152.235.102</publicIp>
431
+ <publicDnsName>ec2-54-152-235-102.compute-1.amazonaws.com</publicDnsName>
432
+ <ipOwnerId>amazon</ipOwnerId>
433
+ </association>
434
+ <privateIpAddressesSet>
435
+ <item>
436
+ <privateIpAddress>10.192.128.41</privateIpAddress>
437
+ <privateDnsName>ip-10-192-128-41.ec2.internal</privateDnsName>
438
+ <primary>true</primary>
439
+ <association>
440
+ <publicIp>54.152.235.102</publicIp>
441
+ <publicDnsName>ec2-54-152-235-102.compute-1.amazonaws.com</publicDnsName>
442
+ <ipOwnerId>amazon</ipOwnerId>
443
+ </association>
444
+ </item>
445
+ </privateIpAddressesSet>
446
+ </item>
447
+ </networkInterfaceSet>
448
+ <iamInstanceProfile>
449
+ <arn>arn:aws:iam::042293964381:instance-profile/razor/us-east-1/sirwinspider-test-dev/sirwinspider-test-dev-vpc-NATRouterRoleProfile-YU228Q0ULUH</arn>
450
+ <id>AIPAIK35YPSIXT52PBAEA</id>
451
+ </iamInstanceProfile>
452
+ <ebsOptimized>false</ebsOptimized>
453
+ </item>
454
+ </instancesSet>
455
+ </item>
456
+ <item>
457
+ <reservationId>r-b8a0cc6b</reservationId>
458
+ <ownerId>042293964381</ownerId>
459
+ <groupSet/>
460
+ <instancesSet>
461
+ <item>
462
+ <instanceId>i-6deb02e4</instanceId>
463
+ <imageId>ami-b0210ed8</imageId>
464
+ <instanceState>
465
+ <code>16</code>
466
+ <name>running</name>
467
+ </instanceState>
468
+ <privateDnsName>ip-10-192-128-13.ec2.internal</privateDnsName>
469
+ <dnsName>ec2-52-91-54-38.compute-1.amazonaws.com</dnsName>
470
+ <reason/>
471
+ <keyName>abegley</keyName>
472
+ <amiLaunchIndex>0</amiLaunchIndex>
473
+ <productCodes/>
474
+ <instanceType>t2.micro</instanceType>
475
+ <launchTime>2016-01-06T11:41:59.000Z</launchTime>
476
+ <placement>
477
+ <availabilityZone>us-east-1a</availabilityZone>
478
+ <groupName/>
479
+ <tenancy>default</tenancy>
480
+ </placement>
481
+ <monitoring>
482
+ <state>disabled</state>
483
+ </monitoring>
484
+ <subnetId>subnet-7ea67c08</subnetId>
485
+ <vpcId>vpc-aacaa0ce</vpcId>
486
+ <privateIpAddress>10.192.128.13</privateIpAddress>
487
+ <ipAddress>52.91.54.38</ipAddress>
488
+ <sourceDestCheck>false</sourceDestCheck>
489
+ <groupSet>
490
+ <item>
491
+ <groupId>sg-168f0b6f</groupId>
492
+ <groupName>abegleyspider-test-0-vpc-NATRouterSG-13PQK2H32BCXR</groupName>
493
+ </item>
494
+ </groupSet>
495
+ <architecture>x86_64</architecture>
496
+ <rootDeviceType>ebs</rootDeviceType>
497
+ <rootDeviceName>/dev/xvda</rootDeviceName>
498
+ <blockDeviceMapping>
499
+ <item>
500
+ <deviceName>/dev/xvda</deviceName>
501
+ <ebs>
502
+ <volumeId>vol-0cdf73ee</volumeId>
503
+ <status>attached</status>
504
+ <attachTime>2016-01-06T11:42:04.000Z</attachTime>
505
+ <deleteOnTermination>true</deleteOnTermination>
506
+ </ebs>
507
+ </item>
508
+ </blockDeviceMapping>
509
+ <virtualizationType>hvm</virtualizationType>
510
+ <clientToken>abegl-NATRo-1TJHA57A55T24</clientToken>
511
+ <tagSet>
512
+ <item>
513
+ <key>Name</key>
514
+ <value>router-us-east-1a</value>
515
+ </item>
516
+ <item>
517
+ <key>aws:cloudformation:stack-name</key>
518
+ <value>abegleyspider-test-0-vpc</value>
519
+ </item>
520
+ <item>
521
+ <key>aws:cloudformation:stack-id</key>
522
+ <value>arn:aws:cloudformation:us-east-1:042293964381:stack/abegleyspider-test-0-vpc/19ba9720-b46a-11e5-8288-500c20fefad2</value>
523
+ </item>
524
+ <item>
525
+ <key>Stack</key>
526
+ <value>abegleyspider-test-0</value>
527
+ </item>
528
+ <item>
529
+ <key>Service</key>
530
+ <value>router</value>
531
+ </item>
532
+ <item>
533
+ <key>aws:cloudformation:logical-id</key>
534
+ <value>NATRouter0</value>
535
+ </item>
536
+ </tagSet>
537
+ <hypervisor>xen</hypervisor>
538
+ <networkInterfaceSet>
539
+ <item>
540
+ <networkInterfaceId>eni-37b07978</networkInterfaceId>
541
+ <subnetId>subnet-7ea67c08</subnetId>
542
+ <vpcId>vpc-aacaa0ce</vpcId>
543
+ <description/>
544
+ <ownerId>042293964381</ownerId>
545
+ <status>in-use</status>
546
+ <macAddress>0a:73:19:83:fc:5d</macAddress>
547
+ <privateIpAddress>10.192.128.13</privateIpAddress>
548
+ <privateDnsName>ip-10-192-128-13.ec2.internal</privateDnsName>
549
+ <sourceDestCheck>false</sourceDestCheck>
550
+ <groupSet>
551
+ <item>
552
+ <groupId>sg-168f0b6f</groupId>
553
+ <groupName>abegleyspider-test-0-vpc-NATRouterSG-13PQK2H32BCXR</groupName>
554
+ </item>
555
+ </groupSet>
556
+ <attachment>
557
+ <attachmentId>eni-attach-395aead3</attachmentId>
558
+ <deviceIndex>0</deviceIndex>
559
+ <status>attached</status>
560
+ <attachTime>2016-01-06T11:41:59.000Z</attachTime>
561
+ <deleteOnTermination>true</deleteOnTermination>
562
+ </attachment>
563
+ <association>
564
+ <publicIp>52.91.54.38</publicIp>
565
+ <publicDnsName>ec2-52-91-54-38.compute-1.amazonaws.com</publicDnsName>
566
+ <ipOwnerId>amazon</ipOwnerId>
567
+ </association>
568
+ <privateIpAddressesSet>
569
+ <item>
570
+ <privateIpAddress>10.192.128.13</privateIpAddress>
571
+ <privateDnsName>ip-10-192-128-13.ec2.internal</privateDnsName>
572
+ <primary>true</primary>
573
+ <association>
574
+ <publicIp>52.91.54.38</publicIp>
575
+ <publicDnsName>ec2-52-91-54-38.compute-1.amazonaws.com</publicDnsName>
576
+ <ipOwnerId>amazon</ipOwnerId>
577
+ </association>
578
+ </item>
579
+ </privateIpAddressesSet>
580
+ </item>
581
+ </networkInterfaceSet>
582
+ <iamInstanceProfile>
583
+ <arn>arn:aws:iam::042293964381:instance-profile/razor/us-east-1/abegleyspider-test-0/abegleyspider-test-0-vpc-NATRouterRoleProfile-1HCSPOXNVYB4P</arn>
584
+ <id>AIPAJMVY2CHZJBH566PJQ</id>
585
+ </iamInstanceProfile>
586
+ <ebsOptimized>false</ebsOptimized>
587
+ </item>
588
+ </instancesSet>
589
+ </item>
590
+ <item>
591
+ <reservationId>r-995c1570</reservationId>
592
+ <ownerId>042293964381</ownerId>
593
+ <groupSet/>
594
+ <instancesSet>
595
+ <item>
596
+ <instanceId>i-6286f69b</instanceId>
597
+ <imageId>ami-b0210ed8</imageId>
598
+ <instanceState>
599
+ <code>16</code>
600
+ <name>running</name>
601
+ </instanceState>
602
+ <privateDnsName>ip-10-192-128-44.ec2.internal</privateDnsName>
603
+ <dnsName>ec2-54-85-130-38.compute-1.amazonaws.com</dnsName>
604
+ <reason/>
605
+ <keyName>abegley</keyName>
606
+ <amiLaunchIndex>0</amiLaunchIndex>
607
+ <productCodes/>
608
+ <instanceType>t2.micro</instanceType>
609
+ <launchTime>2016-01-06T11:42:01.000Z</launchTime>
610
+ <placement>
611
+ <availabilityZone>us-east-1e</availabilityZone>
612
+ <groupName/>
613
+ <tenancy>default</tenancy>
614
+ </placement>
615
+ <monitoring>
616
+ <state>disabled</state>
617
+ </monitoring>
618
+ <subnetId>subnet-cf3ab2f2</subnetId>
619
+ <vpcId>vpc-aacaa0ce</vpcId>
620
+ <privateIpAddress>10.192.128.44</privateIpAddress>
621
+ <ipAddress>54.85.130.38</ipAddress>
622
+ <sourceDestCheck>false</sourceDestCheck>
623
+ <groupSet>
624
+ <item>
625
+ <groupId>sg-168f0b6f</groupId>
626
+ <groupName>abegleyspider-test-0-vpc-NATRouterSG-13PQK2H32BCXR</groupName>
627
+ </item>
628
+ </groupSet>
629
+ <architecture>x86_64</architecture>
630
+ <rootDeviceType>ebs</rootDeviceType>
631
+ <rootDeviceName>/dev/xvda</rootDeviceName>
632
+ <blockDeviceMapping>
633
+ <item>
634
+ <deviceName>/dev/xvda</deviceName>
635
+ <ebs>
636
+ <volumeId>vol-8b1d6243</volumeId>
637
+ <status>attached</status>
638
+ <attachTime>2016-01-06T11:42:05.000Z</attachTime>
639
+ <deleteOnTermination>true</deleteOnTermination>
640
+ </ebs>
641
+ </item>
642
+ </blockDeviceMapping>
643
+ <virtualizationType>hvm</virtualizationType>
644
+ <clientToken>abegl-NATRo-1T47LGW17SGRE</clientToken>
645
+ <tagSet>
646
+ <item>
647
+ <key>Name</key>
648
+ <value>router-us-east-1e</value>
649
+ </item>
650
+ <item>
651
+ <key>aws:cloudformation:logical-id</key>
652
+ <value>NATRouter1</value>
653
+ </item>
654
+ <item>
655
+ <key>aws:cloudformation:stack-name</key>
656
+ <value>abegleyspider-test-0-vpc</value>
657
+ </item>
658
+ <item>
659
+ <key>aws:cloudformation:stack-id</key>
660
+ <value>arn:aws:cloudformation:us-east-1:042293964381:stack/abegleyspider-test-0-vpc/19ba9720-b46a-11e5-8288-500c20fefad2</value>
661
+ </item>
662
+ <item>
663
+ <key>Stack</key>
664
+ <value>abegleyspider-test-0</value>
665
+ </item>
666
+ <item>
667
+ <key>Service</key>
668
+ <value>router</value>
669
+ </item>
670
+ </tagSet>
671
+ <hypervisor>xen</hypervisor>
672
+ <networkInterfaceSet>
673
+ <item>
674
+ <networkInterfaceId>eni-3d522d01</networkInterfaceId>
675
+ <subnetId>subnet-cf3ab2f2</subnetId>
676
+ <vpcId>vpc-aacaa0ce</vpcId>
677
+ <description/>
678
+ <ownerId>042293964381</ownerId>
679
+ <status>in-use</status>
680
+ <macAddress>06:41:87:cb:66:a3</macAddress>
681
+ <privateIpAddress>10.192.128.44</privateIpAddress>
682
+ <privateDnsName>ip-10-192-128-44.ec2.internal</privateDnsName>
683
+ <sourceDestCheck>false</sourceDestCheck>
684
+ <groupSet>
685
+ <item>
686
+ <groupId>sg-168f0b6f</groupId>
687
+ <groupName>abegleyspider-test-0-vpc-NATRouterSG-13PQK2H32BCXR</groupName>
688
+ </item>
689
+ </groupSet>
690
+ <attachment>
691
+ <attachmentId>eni-attach-4fc5593e</attachmentId>
692
+ <deviceIndex>0</deviceIndex>
693
+ <status>attached</status>
694
+ <attachTime>2016-01-06T11:42:01.000Z</attachTime>
695
+ <deleteOnTermination>true</deleteOnTermination>
696
+ </attachment>
697
+ <association>
698
+ <publicIp>54.85.130.38</publicIp>
699
+ <publicDnsName>ec2-54-85-130-38.compute-1.amazonaws.com</publicDnsName>
700
+ <ipOwnerId>amazon</ipOwnerId>
701
+ </association>
702
+ <privateIpAddressesSet>
703
+ <item>
704
+ <privateIpAddress>10.192.128.44</privateIpAddress>
705
+ <privateDnsName>ip-10-192-128-44.ec2.internal</privateDnsName>
706
+ <primary>true</primary>
707
+ <association>
708
+ <publicIp>54.85.130.38</publicIp>
709
+ <publicDnsName>ec2-54-85-130-38.compute-1.amazonaws.com</publicDnsName>
710
+ <ipOwnerId>amazon</ipOwnerId>
711
+ </association>
712
+ </item>
713
+ </privateIpAddressesSet>
714
+ </item>
715
+ </networkInterfaceSet>
716
+ <iamInstanceProfile>
717
+ <arn>arn:aws:iam::042293964381:instance-profile/razor/us-east-1/abegleyspider-test-0/abegleyspider-test-0-vpc-NATRouterRoleProfile-1HCSPOXNVYB4P</arn>
718
+ <id>AIPAJMVY2CHZJBH566PJQ</id>
719
+ </iamInstanceProfile>
720
+ <ebsOptimized>false</ebsOptimized>
721
+ </item>
722
+ </instancesSet>
723
+ </item>
724
+ <item>
725
+ <reservationId>r-78b7ceab</reservationId>
726
+ <ownerId>042293964381</ownerId>
727
+ <groupSet/>
728
+ <instancesSet>
729
+ <item>
730
+ <instanceId>i-6910dfe0</instanceId>
731
+ <imageId>ami-b0210ed8</imageId>
732
+ <instanceState>
733
+ <code>16</code>
734
+ <name>running</name>
735
+ </instanceState>
736
+ <privateDnsName>ip-10-192-128-26.ec2.internal</privateDnsName>
737
+ <dnsName>ec2-52-91-4-47.compute-1.amazonaws.com</dnsName>
738
+ <reason/>
739
+ <keyName>abegley</keyName>
740
+ <amiLaunchIndex>0</amiLaunchIndex>
741
+ <productCodes/>
742
+ <instanceType>t2.micro</instanceType>
743
+ <launchTime>2016-01-11T11:55:14.000Z</launchTime>
744
+ <placement>
745
+ <availabilityZone>us-east-1a</availabilityZone>
746
+ <groupName/>
747
+ <tenancy>default</tenancy>
748
+ </placement>
749
+ <monitoring>
750
+ <state>disabled</state>
751
+ </monitoring>
752
+ <subnetId>subnet-791cbb0f</subnetId>
753
+ <vpcId>vpc-832f5ee7</vpcId>
754
+ <privateIpAddress>10.192.128.26</privateIpAddress>
755
+ <ipAddress>52.91.4.47</ipAddress>
756
+ <sourceDestCheck>false</sourceDestCheck>
757
+ <groupSet>
758
+ <item>
759
+ <groupId>sg-b720b3ce</groupId>
760
+ <groupName>abegleyspider-test-1-vpc-NATRouterSG-120N4KDI519JP</groupName>
761
+ </item>
762
+ </groupSet>
763
+ <architecture>x86_64</architecture>
764
+ <rootDeviceType>ebs</rootDeviceType>
765
+ <rootDeviceName>/dev/xvda</rootDeviceName>
766
+ <blockDeviceMapping>
767
+ <item>
768
+ <deviceName>/dev/xvda</deviceName>
769
+ <ebs>
770
+ <volumeId>vol-8166d357</volumeId>
771
+ <status>attached</status>
772
+ <attachTime>2016-01-11T11:55:17.000Z</attachTime>
773
+ <deleteOnTermination>true</deleteOnTermination>
774
+ </ebs>
775
+ </item>
776
+ </blockDeviceMapping>
777
+ <virtualizationType>hvm</virtualizationType>
778
+ <clientToken>abegl-NATRo-113MGQRE1YWSY</clientToken>
779
+ <tagSet>
780
+ <item>
781
+ <key>Name</key>
782
+ <value>router-us-east-1a</value>
783
+ </item>
784
+ <item>
785
+ <key>aws:cloudformation:logical-id</key>
786
+ <value>NATRouter0</value>
787
+ </item>
788
+ <item>
789
+ <key>aws:cloudformation:stack-name</key>
790
+ <value>abegleyspider-test-1-vpc</value>
791
+ </item>
792
+ <item>
793
+ <key>aws:cloudformation:stack-id</key>
794
+ <value>arn:aws:cloudformation:us-east-1:042293964381:stack/abegleyspider-test-1-vpc/cb562a10-b859-11e5-8aa2-500c5cc81217</value>
795
+ </item>
796
+ <item>
797
+ <key>Service</key>
798
+ <value>router</value>
799
+ </item>
800
+ <item>
801
+ <key>Stack</key>
802
+ <value>abegleyspider-test-1</value>
803
+ </item>
804
+ </tagSet>
805
+ <hypervisor>xen</hypervisor>
806
+ <networkInterfaceSet>
807
+ <item>
808
+ <networkInterfaceId>eni-b00ba7ff</networkInterfaceId>
809
+ <subnetId>subnet-791cbb0f</subnetId>
810
+ <vpcId>vpc-832f5ee7</vpcId>
811
+ <description/>
812
+ <ownerId>042293964381</ownerId>
813
+ <status>in-use</status>
814
+ <macAddress>0a:df:4e:1d:16:11</macAddress>
815
+ <privateIpAddress>10.192.128.26</privateIpAddress>
816
+ <privateDnsName>ip-10-192-128-26.ec2.internal</privateDnsName>
817
+ <sourceDestCheck>false</sourceDestCheck>
818
+ <groupSet>
819
+ <item>
820
+ <groupId>sg-b720b3ce</groupId>
821
+ <groupName>abegleyspider-test-1-vpc-NATRouterSG-120N4KDI519JP</groupName>
822
+ </item>
823
+ </groupSet>
824
+ <attachment>
825
+ <attachmentId>eni-attach-f4008b1e</attachmentId>
826
+ <deviceIndex>0</deviceIndex>
827
+ <status>attached</status>
828
+ <attachTime>2016-01-11T11:55:14.000Z</attachTime>
829
+ <deleteOnTermination>true</deleteOnTermination>
830
+ </attachment>
831
+ <association>
832
+ <publicIp>52.91.4.47</publicIp>
833
+ <publicDnsName>ec2-52-91-4-47.compute-1.amazonaws.com</publicDnsName>
834
+ <ipOwnerId>amazon</ipOwnerId>
835
+ </association>
836
+ <privateIpAddressesSet>
837
+ <item>
838
+ <privateIpAddress>10.192.128.26</privateIpAddress>
839
+ <privateDnsName>ip-10-192-128-26.ec2.internal</privateDnsName>
840
+ <primary>true</primary>
841
+ <association>
842
+ <publicIp>52.91.4.47</publicIp>
843
+ <publicDnsName>ec2-52-91-4-47.compute-1.amazonaws.com</publicDnsName>
844
+ <ipOwnerId>amazon</ipOwnerId>
845
+ </association>
846
+ </item>
847
+ </privateIpAddressesSet>
848
+ </item>
849
+ </networkInterfaceSet>
850
+ <iamInstanceProfile>
851
+ <arn>arn:aws:iam::042293964381:instance-profile/razor/us-east-1/abegleyspider-test-1/abegleyspider-test-1-vpc-NATRouterRoleProfile-12ZG1DOZZP6AH</arn>
852
+ <id>AIPAIYZZHXRAAWZN5SQPI</id>
853
+ </iamInstanceProfile>
854
+ <ebsOptimized>false</ebsOptimized>
855
+ </item>
856
+ </instancesSet>
857
+ </item>
858
+ </reservationSet>
859
+ </DescribeInstancesResponse>
860
+ http_version:
861
+ recorded_at: Mon, 11 Jan 2016 17:21:41 GMT
862
+ recorded_with: VCR 3.0.1