ec2_templater 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.rubocop.yml +12 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +110 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/ec2_templater.gemspec +33 -0
- data/example/config.yml +19 -0
- data/example/haproxy.cfg.erb +49 -0
- data/exe/ec2_templater +4 -0
- data/fixtures/vcr_cassettes/Executing_ec2_templater_with_example_config/will_write_the_rendered_template.yml +268 -0
- data/fixtures/vcr_cassettes/Filtered_Ec2_List_on_matching_tags/.yml +168 -0
- data/fixtures/vcr_cassettes/Filtered_Ec2_List_on_matching_tags/when_filters_do_not_match/.yml +53 -0
- data/fixtures/vcr_cassettes/ec2_run_instance.yml +764 -0
- data/fixtures/vcr_cassettes/ec2_terminate_instance.yml +65 -0
- data/lib/ec2_templater.rb +20 -0
- data/lib/ec2_templater/command_line.rb +22 -0
- data/lib/ec2_templater/ec2_grouper.rb +20 -0
- data/lib/ec2_templater/filtered_ec2_list.rb +40 -0
- data/lib/ec2_templater/monitor.rb +30 -0
- data/lib/ec2_templater/renderer.rb +33 -0
- data/lib/ec2_templater/runner.rb +20 -0
- data/lib/ec2_templater/version.rb +3 -0
- metadata +218 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Action=DescribeInstances&Filter.1.Name=instance-state-name&Filter.1.Value.1=running&Filter.2.Name=tag%3AEnvironment&Filter.2.Value.1=Staging&Filter.3.Name=tag%3ARole&Filter.3.Value.1=app&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.3 ruby/2.2.3 x86_64-darwin14
|
16
|
+
X-Amz-Date:
|
17
|
+
- 20151207T062038Z
|
18
|
+
Host:
|
19
|
+
- ec2.ap-southeast-2.amazonaws.com
|
20
|
+
X-Amz-Content-Sha256:
|
21
|
+
- 888b2a3ded69af237b9163c3b8c04fbe3198dd20ae9ee87473e0fe5ba0c71d8d
|
22
|
+
Authorization:
|
23
|
+
- "<AUTHORIZATION>"
|
24
|
+
Content-Length:
|
25
|
+
- '205'
|
26
|
+
Accept:
|
27
|
+
- "*/*"
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 200
|
31
|
+
message: OK
|
32
|
+
headers:
|
33
|
+
Content-Type:
|
34
|
+
- text/xml;charset=UTF-8
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Date:
|
40
|
+
- Mon, 07 Dec 2015 06:20:29 GMT
|
41
|
+
Server:
|
42
|
+
- AmazonEC2
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
47
|
+
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
48
|
+
<requestId>7159d1c8-f3b7-4f43-aed5-7fc8d2c1a81a</requestId>
|
49
|
+
<reservationSet>
|
50
|
+
<item>
|
51
|
+
<reservationId>r-694f58b5</reservationId>
|
52
|
+
<ownerId>492770473521</ownerId>
|
53
|
+
<groupSet/>
|
54
|
+
<instancesSet>
|
55
|
+
<item>
|
56
|
+
<instanceId>i-e094e03f</instanceId>
|
57
|
+
<imageId>ami-187a247b</imageId>
|
58
|
+
<instanceState>
|
59
|
+
<code>16</code>
|
60
|
+
<name>running</name>
|
61
|
+
</instanceState>
|
62
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
63
|
+
<dnsName>ec2-52-62-79-7.ap-southeast-2.compute.amazonaws.com</dnsName>
|
64
|
+
<reason/>
|
65
|
+
<keyName>the_adam</keyName>
|
66
|
+
<amiLaunchIndex>0</amiLaunchIndex>
|
67
|
+
<productCodes/>
|
68
|
+
<instanceType>t2.micro</instanceType>
|
69
|
+
<launchTime>2015-12-07T06:19:43.000Z</launchTime>
|
70
|
+
<placement>
|
71
|
+
<availabilityZone>ap-southeast-2a</availabilityZone>
|
72
|
+
<groupName/>
|
73
|
+
<tenancy>default</tenancy>
|
74
|
+
</placement>
|
75
|
+
<monitoring>
|
76
|
+
<state>disabled</state>
|
77
|
+
</monitoring>
|
78
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
79
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
80
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
81
|
+
<ipAddress>52.62.79.7</ipAddress>
|
82
|
+
<sourceDestCheck>true</sourceDestCheck>
|
83
|
+
<groupSet>
|
84
|
+
<item>
|
85
|
+
<groupId>sg-6ec8860b</groupId>
|
86
|
+
<groupName>default</groupName>
|
87
|
+
</item>
|
88
|
+
</groupSet>
|
89
|
+
<architecture>x86_64</architecture>
|
90
|
+
<rootDeviceType>ebs</rootDeviceType>
|
91
|
+
<rootDeviceName>/dev/sda1</rootDeviceName>
|
92
|
+
<blockDeviceMapping>
|
93
|
+
<item>
|
94
|
+
<deviceName>/dev/sda1</deviceName>
|
95
|
+
<ebs>
|
96
|
+
<volumeId>vol-ccf64a06</volumeId>
|
97
|
+
<status>attached</status>
|
98
|
+
<attachTime>2015-12-07T06:19:46.000Z</attachTime>
|
99
|
+
<deleteOnTermination>true</deleteOnTermination>
|
100
|
+
</ebs>
|
101
|
+
</item>
|
102
|
+
</blockDeviceMapping>
|
103
|
+
<virtualizationType>hvm</virtualizationType>
|
104
|
+
<clientToken/>
|
105
|
+
<tagSet>
|
106
|
+
<item>
|
107
|
+
<key>Role</key>
|
108
|
+
<value>app</value>
|
109
|
+
</item>
|
110
|
+
<item>
|
111
|
+
<key>Environment</key>
|
112
|
+
<value>Staging</value>
|
113
|
+
</item>
|
114
|
+
</tagSet>
|
115
|
+
<hypervisor>xen</hypervisor>
|
116
|
+
<networkInterfaceSet>
|
117
|
+
<item>
|
118
|
+
<networkInterfaceId>eni-f14ccd96</networkInterfaceId>
|
119
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
120
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
121
|
+
<description/>
|
122
|
+
<ownerId>492770473521</ownerId>
|
123
|
+
<status>in-use</status>
|
124
|
+
<macAddress>02:6f:05:18:b7:c5</macAddress>
|
125
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
126
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
127
|
+
<sourceDestCheck>true</sourceDestCheck>
|
128
|
+
<groupSet>
|
129
|
+
<item>
|
130
|
+
<groupId>sg-6ec8860b</groupId>
|
131
|
+
<groupName>default</groupName>
|
132
|
+
</item>
|
133
|
+
</groupSet>
|
134
|
+
<attachment>
|
135
|
+
<attachmentId>eni-attach-5dfdda63</attachmentId>
|
136
|
+
<deviceIndex>0</deviceIndex>
|
137
|
+
<status>attached</status>
|
138
|
+
<attachTime>2015-12-07T06:19:43.000Z</attachTime>
|
139
|
+
<deleteOnTermination>true</deleteOnTermination>
|
140
|
+
</attachment>
|
141
|
+
<association>
|
142
|
+
<publicIp>52.62.79.7</publicIp>
|
143
|
+
<publicDnsName>ec2-52-62-79-7.ap-southeast-2.compute.amazonaws.com</publicDnsName>
|
144
|
+
<ipOwnerId>amazon</ipOwnerId>
|
145
|
+
</association>
|
146
|
+
<privateIpAddressesSet>
|
147
|
+
<item>
|
148
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
149
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
150
|
+
<primary>true</primary>
|
151
|
+
<association>
|
152
|
+
<publicIp>52.62.79.7</publicIp>
|
153
|
+
<publicDnsName>ec2-52-62-79-7.ap-southeast-2.compute.amazonaws.com</publicDnsName>
|
154
|
+
<ipOwnerId>amazon</ipOwnerId>
|
155
|
+
</association>
|
156
|
+
</item>
|
157
|
+
</privateIpAddressesSet>
|
158
|
+
</item>
|
159
|
+
</networkInterfaceSet>
|
160
|
+
<ebsOptimized>false</ebsOptimized>
|
161
|
+
</item>
|
162
|
+
</instancesSet>
|
163
|
+
</item>
|
164
|
+
</reservationSet>
|
165
|
+
</DescribeInstancesResponse>
|
166
|
+
http_version:
|
167
|
+
recorded_at: Mon, 07 Dec 2015 06:20:38 GMT
|
168
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Action=DescribeInstances&Filter.1.Name=instance-state-name&Filter.1.Value.1=running&Filter.2.Name=tag%3AEnvironment&Filter.2.Value.1=Staging&Filter.3.Name=tag%3ARole&Filter.3.Value.1=db&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.3 ruby/2.2.3 x86_64-darwin14
|
16
|
+
X-Amz-Date:
|
17
|
+
- 20151207T062038Z
|
18
|
+
Host:
|
19
|
+
- ec2.ap-southeast-2.amazonaws.com
|
20
|
+
X-Amz-Content-Sha256:
|
21
|
+
- f29f74cc87174af10bcad213392b220df9202b8628ae20f6e053498a180f7bf1
|
22
|
+
Authorization:
|
23
|
+
- "<AUTHORIZATION>"
|
24
|
+
Content-Length:
|
25
|
+
- '204'
|
26
|
+
Accept:
|
27
|
+
- "*/*"
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 200
|
31
|
+
message: OK
|
32
|
+
headers:
|
33
|
+
Content-Type:
|
34
|
+
- text/xml;charset=UTF-8
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Date:
|
40
|
+
- Mon, 07 Dec 2015 06:20:30 GMT
|
41
|
+
Server:
|
42
|
+
- AmazonEC2
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
47
|
+
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
48
|
+
<requestId>3b5ef9b4-d945-457e-8209-0af13b9a756d</requestId>
|
49
|
+
<reservationSet/>
|
50
|
+
</DescribeInstancesResponse>
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 07 Dec 2015 06:20:38 GMT
|
53
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,764 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Action=RunInstances&ImageId=ami-187a247b&InstanceType=t2.micro&KeyName=the_adam&MaxCount=1&MinCount=1&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.3 ruby/2.2.3 x86_64-darwin14
|
16
|
+
X-Amz-Date:
|
17
|
+
- 20151207T061951Z
|
18
|
+
Host:
|
19
|
+
- ec2.ap-southeast-2.amazonaws.com
|
20
|
+
X-Amz-Content-Sha256:
|
21
|
+
- 97015eb8495fe452d0abf11154c8f88ce90e0d3e8b8db7703162b2ff2bd7b9a8
|
22
|
+
Authorization:
|
23
|
+
- "<AUTHORIZATION>"
|
24
|
+
Content-Length:
|
25
|
+
- '120'
|
26
|
+
Accept:
|
27
|
+
- "*/*"
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 200
|
31
|
+
message: OK
|
32
|
+
headers:
|
33
|
+
Content-Type:
|
34
|
+
- text/xml;charset=UTF-8
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Vary:
|
38
|
+
- Accept-Encoding
|
39
|
+
Date:
|
40
|
+
- Mon, 07 Dec 2015 06:19:43 GMT
|
41
|
+
Server:
|
42
|
+
- AmazonEC2
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
47
|
+
<RunInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
48
|
+
<requestId>d489dc7a-a3f9-4369-b1c2-18fd02ac1beb</requestId>
|
49
|
+
<reservationId>r-694f58b5</reservationId>
|
50
|
+
<ownerId>492770473521</ownerId>
|
51
|
+
<groupSet/>
|
52
|
+
<instancesSet>
|
53
|
+
<item>
|
54
|
+
<instanceId>i-e094e03f</instanceId>
|
55
|
+
<imageId>ami-187a247b</imageId>
|
56
|
+
<instanceState>
|
57
|
+
<code>0</code>
|
58
|
+
<name>pending</name>
|
59
|
+
</instanceState>
|
60
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
61
|
+
<dnsName/>
|
62
|
+
<reason/>
|
63
|
+
<keyName>the_adam</keyName>
|
64
|
+
<amiLaunchIndex>0</amiLaunchIndex>
|
65
|
+
<productCodes/>
|
66
|
+
<instanceType>t2.micro</instanceType>
|
67
|
+
<launchTime>2015-12-07T06:19:43.000Z</launchTime>
|
68
|
+
<placement>
|
69
|
+
<availabilityZone>ap-southeast-2a</availabilityZone>
|
70
|
+
<groupName/>
|
71
|
+
<tenancy>default</tenancy>
|
72
|
+
</placement>
|
73
|
+
<monitoring>
|
74
|
+
<state>disabled</state>
|
75
|
+
</monitoring>
|
76
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
77
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
78
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
79
|
+
<sourceDestCheck>true</sourceDestCheck>
|
80
|
+
<groupSet>
|
81
|
+
<item>
|
82
|
+
<groupId>sg-6ec8860b</groupId>
|
83
|
+
<groupName>default</groupName>
|
84
|
+
</item>
|
85
|
+
</groupSet>
|
86
|
+
<stateReason>
|
87
|
+
<code>pending</code>
|
88
|
+
<message>pending</message>
|
89
|
+
</stateReason>
|
90
|
+
<architecture>x86_64</architecture>
|
91
|
+
<rootDeviceType>ebs</rootDeviceType>
|
92
|
+
<rootDeviceName>/dev/sda1</rootDeviceName>
|
93
|
+
<blockDeviceMapping/>
|
94
|
+
<virtualizationType>hvm</virtualizationType>
|
95
|
+
<clientToken/>
|
96
|
+
<hypervisor>xen</hypervisor>
|
97
|
+
<networkInterfaceSet>
|
98
|
+
<item>
|
99
|
+
<networkInterfaceId>eni-f14ccd96</networkInterfaceId>
|
100
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
101
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
102
|
+
<description/>
|
103
|
+
<ownerId>492770473521</ownerId>
|
104
|
+
<status>in-use</status>
|
105
|
+
<macAddress>02:6f:05:18:b7:c5</macAddress>
|
106
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
107
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
108
|
+
<sourceDestCheck>true</sourceDestCheck>
|
109
|
+
<groupSet>
|
110
|
+
<item>
|
111
|
+
<groupId>sg-6ec8860b</groupId>
|
112
|
+
<groupName>default</groupName>
|
113
|
+
</item>
|
114
|
+
</groupSet>
|
115
|
+
<attachment>
|
116
|
+
<attachmentId>eni-attach-5dfdda63</attachmentId>
|
117
|
+
<deviceIndex>0</deviceIndex>
|
118
|
+
<status>attaching</status>
|
119
|
+
<attachTime>2015-12-07T06:19:43.000Z</attachTime>
|
120
|
+
<deleteOnTermination>true</deleteOnTermination>
|
121
|
+
</attachment>
|
122
|
+
<privateIpAddressesSet>
|
123
|
+
<item>
|
124
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
125
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
126
|
+
<primary>true</primary>
|
127
|
+
</item>
|
128
|
+
</privateIpAddressesSet>
|
129
|
+
</item>
|
130
|
+
</networkInterfaceSet>
|
131
|
+
<ebsOptimized>false</ebsOptimized>
|
132
|
+
</item>
|
133
|
+
</instancesSet>
|
134
|
+
</RunInstancesResponse>
|
135
|
+
http_version:
|
136
|
+
recorded_at: Mon, 07 Dec 2015 06:19:52 GMT
|
137
|
+
- request:
|
138
|
+
method: post
|
139
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
140
|
+
body:
|
141
|
+
encoding: UTF-8
|
142
|
+
string: Action=DescribeInstances&InstanceId.1=i-e094e03f&Version=2015-10-01
|
143
|
+
headers:
|
144
|
+
Content-Type:
|
145
|
+
- application/x-www-form-urlencoded; charset=utf-8
|
146
|
+
Accept-Encoding:
|
147
|
+
- ''
|
148
|
+
User-Agent:
|
149
|
+
- aws-sdk-ruby2/2.2.3 ruby/2.2.3 x86_64-darwin14
|
150
|
+
X-Amz-Date:
|
151
|
+
- 20151207T061952Z
|
152
|
+
Host:
|
153
|
+
- ec2.ap-southeast-2.amazonaws.com
|
154
|
+
X-Amz-Content-Sha256:
|
155
|
+
- ee7a8b695b41af8ef783a870f432e7e6d8b5852db9efa6f0fb7024c06da82b9a
|
156
|
+
Authorization:
|
157
|
+
- "<AUTHORIZATION>"
|
158
|
+
Content-Length:
|
159
|
+
- '67'
|
160
|
+
Accept:
|
161
|
+
- "*/*"
|
162
|
+
response:
|
163
|
+
status:
|
164
|
+
code: 200
|
165
|
+
message: OK
|
166
|
+
headers:
|
167
|
+
Content-Type:
|
168
|
+
- text/xml;charset=UTF-8
|
169
|
+
Transfer-Encoding:
|
170
|
+
- chunked
|
171
|
+
Vary:
|
172
|
+
- Accept-Encoding
|
173
|
+
Date:
|
174
|
+
- Mon, 07 Dec 2015 06:19:43 GMT
|
175
|
+
Server:
|
176
|
+
- AmazonEC2
|
177
|
+
body:
|
178
|
+
encoding: UTF-8
|
179
|
+
string: |-
|
180
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
181
|
+
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
182
|
+
<requestId>4f54cad1-3592-4ef3-ab0d-d492f0a88c84</requestId>
|
183
|
+
<reservationSet>
|
184
|
+
<item>
|
185
|
+
<reservationId>r-694f58b5</reservationId>
|
186
|
+
<ownerId>492770473521</ownerId>
|
187
|
+
<groupSet/>
|
188
|
+
<instancesSet>
|
189
|
+
<item>
|
190
|
+
<instanceId>i-e094e03f</instanceId>
|
191
|
+
<imageId>ami-187a247b</imageId>
|
192
|
+
<instanceState>
|
193
|
+
<code>0</code>
|
194
|
+
<name>pending</name>
|
195
|
+
</instanceState>
|
196
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
197
|
+
<dnsName/>
|
198
|
+
<reason/>
|
199
|
+
<keyName>the_adam</keyName>
|
200
|
+
<amiLaunchIndex>0</amiLaunchIndex>
|
201
|
+
<productCodes/>
|
202
|
+
<instanceType>t2.micro</instanceType>
|
203
|
+
<launchTime>2015-12-07T06:19:43.000Z</launchTime>
|
204
|
+
<placement>
|
205
|
+
<availabilityZone>ap-southeast-2a</availabilityZone>
|
206
|
+
<groupName/>
|
207
|
+
<tenancy>default</tenancy>
|
208
|
+
</placement>
|
209
|
+
<monitoring>
|
210
|
+
<state>disabled</state>
|
211
|
+
</monitoring>
|
212
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
213
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
214
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
215
|
+
<sourceDestCheck>true</sourceDestCheck>
|
216
|
+
<groupSet>
|
217
|
+
<item>
|
218
|
+
<groupId>sg-6ec8860b</groupId>
|
219
|
+
<groupName>default</groupName>
|
220
|
+
</item>
|
221
|
+
</groupSet>
|
222
|
+
<architecture>x86_64</architecture>
|
223
|
+
<rootDeviceType>ebs</rootDeviceType>
|
224
|
+
<rootDeviceName>/dev/sda1</rootDeviceName>
|
225
|
+
<blockDeviceMapping/>
|
226
|
+
<virtualizationType>hvm</virtualizationType>
|
227
|
+
<clientToken/>
|
228
|
+
<hypervisor>xen</hypervisor>
|
229
|
+
<networkInterfaceSet>
|
230
|
+
<item>
|
231
|
+
<networkInterfaceId>eni-f14ccd96</networkInterfaceId>
|
232
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
233
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
234
|
+
<description/>
|
235
|
+
<ownerId>492770473521</ownerId>
|
236
|
+
<status>in-use</status>
|
237
|
+
<macAddress>02:6f:05:18:b7:c5</macAddress>
|
238
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
239
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
240
|
+
<sourceDestCheck>true</sourceDestCheck>
|
241
|
+
<groupSet>
|
242
|
+
<item>
|
243
|
+
<groupId>sg-6ec8860b</groupId>
|
244
|
+
<groupName>default</groupName>
|
245
|
+
</item>
|
246
|
+
</groupSet>
|
247
|
+
<attachment>
|
248
|
+
<attachmentId>eni-attach-5dfdda63</attachmentId>
|
249
|
+
<deviceIndex>0</deviceIndex>
|
250
|
+
<status>attaching</status>
|
251
|
+
<attachTime>2015-12-07T06:19:43.000Z</attachTime>
|
252
|
+
<deleteOnTermination>true</deleteOnTermination>
|
253
|
+
</attachment>
|
254
|
+
<privateIpAddressesSet>
|
255
|
+
<item>
|
256
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
257
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
258
|
+
<primary>true</primary>
|
259
|
+
</item>
|
260
|
+
</privateIpAddressesSet>
|
261
|
+
</item>
|
262
|
+
</networkInterfaceSet>
|
263
|
+
<ebsOptimized>false</ebsOptimized>
|
264
|
+
</item>
|
265
|
+
</instancesSet>
|
266
|
+
</item>
|
267
|
+
</reservationSet>
|
268
|
+
</DescribeInstancesResponse>
|
269
|
+
http_version:
|
270
|
+
recorded_at: Mon, 07 Dec 2015 06:19:52 GMT
|
271
|
+
- request:
|
272
|
+
method: post
|
273
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
274
|
+
body:
|
275
|
+
encoding: UTF-8
|
276
|
+
string: Action=DescribeInstances&InstanceId.1=i-e094e03f&Version=2015-10-01
|
277
|
+
headers:
|
278
|
+
Content-Type:
|
279
|
+
- application/x-www-form-urlencoded; charset=utf-8
|
280
|
+
Accept-Encoding:
|
281
|
+
- ''
|
282
|
+
User-Agent:
|
283
|
+
- aws-sdk-ruby2/2.2.3 ruby/2.2.3 x86_64-darwin14
|
284
|
+
X-Amz-Date:
|
285
|
+
- 20151207T062007Z
|
286
|
+
Host:
|
287
|
+
- ec2.ap-southeast-2.amazonaws.com
|
288
|
+
X-Amz-Content-Sha256:
|
289
|
+
- ee7a8b695b41af8ef783a870f432e7e6d8b5852db9efa6f0fb7024c06da82b9a
|
290
|
+
Authorization:
|
291
|
+
- "<AUTHORIZATION>"
|
292
|
+
Content-Length:
|
293
|
+
- '67'
|
294
|
+
Accept:
|
295
|
+
- "*/*"
|
296
|
+
response:
|
297
|
+
status:
|
298
|
+
code: 200
|
299
|
+
message: OK
|
300
|
+
headers:
|
301
|
+
Content-Type:
|
302
|
+
- text/xml;charset=UTF-8
|
303
|
+
Transfer-Encoding:
|
304
|
+
- chunked
|
305
|
+
Vary:
|
306
|
+
- Accept-Encoding
|
307
|
+
Date:
|
308
|
+
- Mon, 07 Dec 2015 06:19:58 GMT
|
309
|
+
Server:
|
310
|
+
- AmazonEC2
|
311
|
+
body:
|
312
|
+
encoding: UTF-8
|
313
|
+
string: |-
|
314
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
315
|
+
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
316
|
+
<requestId>1aafc88e-a55c-45a8-9ea8-56b6dafb992c</requestId>
|
317
|
+
<reservationSet>
|
318
|
+
<item>
|
319
|
+
<reservationId>r-694f58b5</reservationId>
|
320
|
+
<ownerId>492770473521</ownerId>
|
321
|
+
<groupSet/>
|
322
|
+
<instancesSet>
|
323
|
+
<item>
|
324
|
+
<instanceId>i-e094e03f</instanceId>
|
325
|
+
<imageId>ami-187a247b</imageId>
|
326
|
+
<instanceState>
|
327
|
+
<code>0</code>
|
328
|
+
<name>pending</name>
|
329
|
+
</instanceState>
|
330
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
331
|
+
<dnsName/>
|
332
|
+
<reason/>
|
333
|
+
<keyName>the_adam</keyName>
|
334
|
+
<amiLaunchIndex>0</amiLaunchIndex>
|
335
|
+
<productCodes/>
|
336
|
+
<instanceType>t2.micro</instanceType>
|
337
|
+
<launchTime>2015-12-07T06:19:43.000Z</launchTime>
|
338
|
+
<placement>
|
339
|
+
<availabilityZone>ap-southeast-2a</availabilityZone>
|
340
|
+
<groupName/>
|
341
|
+
<tenancy>default</tenancy>
|
342
|
+
</placement>
|
343
|
+
<monitoring>
|
344
|
+
<state>disabled</state>
|
345
|
+
</monitoring>
|
346
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
347
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
348
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
349
|
+
<sourceDestCheck>true</sourceDestCheck>
|
350
|
+
<groupSet>
|
351
|
+
<item>
|
352
|
+
<groupId>sg-6ec8860b</groupId>
|
353
|
+
<groupName>default</groupName>
|
354
|
+
</item>
|
355
|
+
</groupSet>
|
356
|
+
<architecture>x86_64</architecture>
|
357
|
+
<rootDeviceType>ebs</rootDeviceType>
|
358
|
+
<rootDeviceName>/dev/sda1</rootDeviceName>
|
359
|
+
<blockDeviceMapping>
|
360
|
+
<item>
|
361
|
+
<deviceName>/dev/sda1</deviceName>
|
362
|
+
<ebs>
|
363
|
+
<volumeId>vol-ccf64a06</volumeId>
|
364
|
+
<status>attaching</status>
|
365
|
+
<attachTime>2015-12-07T06:19:46.000Z</attachTime>
|
366
|
+
<deleteOnTermination>true</deleteOnTermination>
|
367
|
+
</ebs>
|
368
|
+
</item>
|
369
|
+
</blockDeviceMapping>
|
370
|
+
<virtualizationType>hvm</virtualizationType>
|
371
|
+
<clientToken/>
|
372
|
+
<hypervisor>xen</hypervisor>
|
373
|
+
<networkInterfaceSet>
|
374
|
+
<item>
|
375
|
+
<networkInterfaceId>eni-f14ccd96</networkInterfaceId>
|
376
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
377
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
378
|
+
<description/>
|
379
|
+
<ownerId>492770473521</ownerId>
|
380
|
+
<status>in-use</status>
|
381
|
+
<macAddress>02:6f:05:18:b7:c5</macAddress>
|
382
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
383
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
384
|
+
<sourceDestCheck>true</sourceDestCheck>
|
385
|
+
<groupSet>
|
386
|
+
<item>
|
387
|
+
<groupId>sg-6ec8860b</groupId>
|
388
|
+
<groupName>default</groupName>
|
389
|
+
</item>
|
390
|
+
</groupSet>
|
391
|
+
<attachment>
|
392
|
+
<attachmentId>eni-attach-5dfdda63</attachmentId>
|
393
|
+
<deviceIndex>0</deviceIndex>
|
394
|
+
<status>attaching</status>
|
395
|
+
<attachTime>2015-12-07T06:19:43.000Z</attachTime>
|
396
|
+
<deleteOnTermination>true</deleteOnTermination>
|
397
|
+
</attachment>
|
398
|
+
<privateIpAddressesSet>
|
399
|
+
<item>
|
400
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
401
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
402
|
+
<primary>true</primary>
|
403
|
+
</item>
|
404
|
+
</privateIpAddressesSet>
|
405
|
+
</item>
|
406
|
+
</networkInterfaceSet>
|
407
|
+
<ebsOptimized>false</ebsOptimized>
|
408
|
+
</item>
|
409
|
+
</instancesSet>
|
410
|
+
</item>
|
411
|
+
</reservationSet>
|
412
|
+
</DescribeInstancesResponse>
|
413
|
+
http_version:
|
414
|
+
recorded_at: Mon, 07 Dec 2015 06:20:07 GMT
|
415
|
+
- request:
|
416
|
+
method: post
|
417
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
418
|
+
body:
|
419
|
+
encoding: UTF-8
|
420
|
+
string: Action=DescribeInstances&InstanceId.1=i-e094e03f&Version=2015-10-01
|
421
|
+
headers:
|
422
|
+
Content-Type:
|
423
|
+
- application/x-www-form-urlencoded; charset=utf-8
|
424
|
+
Accept-Encoding:
|
425
|
+
- ''
|
426
|
+
User-Agent:
|
427
|
+
- aws-sdk-ruby2/2.2.3 ruby/2.2.3 x86_64-darwin14
|
428
|
+
X-Amz-Date:
|
429
|
+
- 20151207T062022Z
|
430
|
+
Host:
|
431
|
+
- ec2.ap-southeast-2.amazonaws.com
|
432
|
+
X-Amz-Content-Sha256:
|
433
|
+
- ee7a8b695b41af8ef783a870f432e7e6d8b5852db9efa6f0fb7024c06da82b9a
|
434
|
+
Authorization:
|
435
|
+
- "<AUTHORIZATION>"
|
436
|
+
Content-Length:
|
437
|
+
- '67'
|
438
|
+
Accept:
|
439
|
+
- "*/*"
|
440
|
+
response:
|
441
|
+
status:
|
442
|
+
code: 200
|
443
|
+
message: OK
|
444
|
+
headers:
|
445
|
+
Content-Type:
|
446
|
+
- text/xml;charset=UTF-8
|
447
|
+
Transfer-Encoding:
|
448
|
+
- chunked
|
449
|
+
Vary:
|
450
|
+
- Accept-Encoding
|
451
|
+
Date:
|
452
|
+
- Mon, 07 Dec 2015 06:20:13 GMT
|
453
|
+
Server:
|
454
|
+
- AmazonEC2
|
455
|
+
body:
|
456
|
+
encoding: UTF-8
|
457
|
+
string: |-
|
458
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
459
|
+
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
460
|
+
<requestId>d5d882e5-b81e-4533-8242-3296ab5079a6</requestId>
|
461
|
+
<reservationSet>
|
462
|
+
<item>
|
463
|
+
<reservationId>r-694f58b5</reservationId>
|
464
|
+
<ownerId>492770473521</ownerId>
|
465
|
+
<groupSet/>
|
466
|
+
<instancesSet>
|
467
|
+
<item>
|
468
|
+
<instanceId>i-e094e03f</instanceId>
|
469
|
+
<imageId>ami-187a247b</imageId>
|
470
|
+
<instanceState>
|
471
|
+
<code>0</code>
|
472
|
+
<name>pending</name>
|
473
|
+
</instanceState>
|
474
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
475
|
+
<dnsName/>
|
476
|
+
<reason/>
|
477
|
+
<keyName>the_adam</keyName>
|
478
|
+
<amiLaunchIndex>0</amiLaunchIndex>
|
479
|
+
<productCodes/>
|
480
|
+
<instanceType>t2.micro</instanceType>
|
481
|
+
<launchTime>2015-12-07T06:19:43.000Z</launchTime>
|
482
|
+
<placement>
|
483
|
+
<availabilityZone>ap-southeast-2a</availabilityZone>
|
484
|
+
<groupName/>
|
485
|
+
<tenancy>default</tenancy>
|
486
|
+
</placement>
|
487
|
+
<monitoring>
|
488
|
+
<state>disabled</state>
|
489
|
+
</monitoring>
|
490
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
491
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
492
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
493
|
+
<sourceDestCheck>true</sourceDestCheck>
|
494
|
+
<groupSet>
|
495
|
+
<item>
|
496
|
+
<groupId>sg-6ec8860b</groupId>
|
497
|
+
<groupName>default</groupName>
|
498
|
+
</item>
|
499
|
+
</groupSet>
|
500
|
+
<architecture>x86_64</architecture>
|
501
|
+
<rootDeviceType>ebs</rootDeviceType>
|
502
|
+
<rootDeviceName>/dev/sda1</rootDeviceName>
|
503
|
+
<blockDeviceMapping>
|
504
|
+
<item>
|
505
|
+
<deviceName>/dev/sda1</deviceName>
|
506
|
+
<ebs>
|
507
|
+
<volumeId>vol-ccf64a06</volumeId>
|
508
|
+
<status>attaching</status>
|
509
|
+
<attachTime>2015-12-07T06:19:46.000Z</attachTime>
|
510
|
+
<deleteOnTermination>true</deleteOnTermination>
|
511
|
+
</ebs>
|
512
|
+
</item>
|
513
|
+
</blockDeviceMapping>
|
514
|
+
<virtualizationType>hvm</virtualizationType>
|
515
|
+
<clientToken/>
|
516
|
+
<hypervisor>xen</hypervisor>
|
517
|
+
<networkInterfaceSet>
|
518
|
+
<item>
|
519
|
+
<networkInterfaceId>eni-f14ccd96</networkInterfaceId>
|
520
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
521
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
522
|
+
<description/>
|
523
|
+
<ownerId>492770473521</ownerId>
|
524
|
+
<status>in-use</status>
|
525
|
+
<macAddress>02:6f:05:18:b7:c5</macAddress>
|
526
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
527
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
528
|
+
<sourceDestCheck>true</sourceDestCheck>
|
529
|
+
<groupSet>
|
530
|
+
<item>
|
531
|
+
<groupId>sg-6ec8860b</groupId>
|
532
|
+
<groupName>default</groupName>
|
533
|
+
</item>
|
534
|
+
</groupSet>
|
535
|
+
<attachment>
|
536
|
+
<attachmentId>eni-attach-5dfdda63</attachmentId>
|
537
|
+
<deviceIndex>0</deviceIndex>
|
538
|
+
<status>attaching</status>
|
539
|
+
<attachTime>2015-12-07T06:19:43.000Z</attachTime>
|
540
|
+
<deleteOnTermination>true</deleteOnTermination>
|
541
|
+
</attachment>
|
542
|
+
<privateIpAddressesSet>
|
543
|
+
<item>
|
544
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
545
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
546
|
+
<primary>true</primary>
|
547
|
+
</item>
|
548
|
+
</privateIpAddressesSet>
|
549
|
+
</item>
|
550
|
+
</networkInterfaceSet>
|
551
|
+
<ebsOptimized>false</ebsOptimized>
|
552
|
+
</item>
|
553
|
+
</instancesSet>
|
554
|
+
</item>
|
555
|
+
</reservationSet>
|
556
|
+
</DescribeInstancesResponse>
|
557
|
+
http_version:
|
558
|
+
recorded_at: Mon, 07 Dec 2015 06:20:22 GMT
|
559
|
+
- request:
|
560
|
+
method: post
|
561
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
562
|
+
body:
|
563
|
+
encoding: UTF-8
|
564
|
+
string: Action=DescribeInstances&InstanceId.1=i-e094e03f&Version=2015-10-01
|
565
|
+
headers:
|
566
|
+
Content-Type:
|
567
|
+
- application/x-www-form-urlencoded; charset=utf-8
|
568
|
+
Accept-Encoding:
|
569
|
+
- ''
|
570
|
+
User-Agent:
|
571
|
+
- aws-sdk-ruby2/2.2.3 ruby/2.2.3 x86_64-darwin14
|
572
|
+
X-Amz-Date:
|
573
|
+
- 20151207T062037Z
|
574
|
+
Host:
|
575
|
+
- ec2.ap-southeast-2.amazonaws.com
|
576
|
+
X-Amz-Content-Sha256:
|
577
|
+
- ee7a8b695b41af8ef783a870f432e7e6d8b5852db9efa6f0fb7024c06da82b9a
|
578
|
+
Authorization:
|
579
|
+
- "<AUTHORIZATION>"
|
580
|
+
Content-Length:
|
581
|
+
- '67'
|
582
|
+
Accept:
|
583
|
+
- "*/*"
|
584
|
+
response:
|
585
|
+
status:
|
586
|
+
code: 200
|
587
|
+
message: OK
|
588
|
+
headers:
|
589
|
+
Content-Type:
|
590
|
+
- text/xml;charset=UTF-8
|
591
|
+
Transfer-Encoding:
|
592
|
+
- chunked
|
593
|
+
Vary:
|
594
|
+
- Accept-Encoding
|
595
|
+
Date:
|
596
|
+
- Mon, 07 Dec 2015 06:20:29 GMT
|
597
|
+
Server:
|
598
|
+
- AmazonEC2
|
599
|
+
body:
|
600
|
+
encoding: UTF-8
|
601
|
+
string: |-
|
602
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
603
|
+
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
604
|
+
<requestId>acd5f20b-7bf9-40f6-978d-25d55e9436f7</requestId>
|
605
|
+
<reservationSet>
|
606
|
+
<item>
|
607
|
+
<reservationId>r-694f58b5</reservationId>
|
608
|
+
<ownerId>492770473521</ownerId>
|
609
|
+
<groupSet/>
|
610
|
+
<instancesSet>
|
611
|
+
<item>
|
612
|
+
<instanceId>i-e094e03f</instanceId>
|
613
|
+
<imageId>ami-187a247b</imageId>
|
614
|
+
<instanceState>
|
615
|
+
<code>16</code>
|
616
|
+
<name>running</name>
|
617
|
+
</instanceState>
|
618
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
619
|
+
<dnsName>ec2-52-62-79-7.ap-southeast-2.compute.amazonaws.com</dnsName>
|
620
|
+
<reason/>
|
621
|
+
<keyName>the_adam</keyName>
|
622
|
+
<amiLaunchIndex>0</amiLaunchIndex>
|
623
|
+
<productCodes/>
|
624
|
+
<instanceType>t2.micro</instanceType>
|
625
|
+
<launchTime>2015-12-07T06:19:43.000Z</launchTime>
|
626
|
+
<placement>
|
627
|
+
<availabilityZone>ap-southeast-2a</availabilityZone>
|
628
|
+
<groupName/>
|
629
|
+
<tenancy>default</tenancy>
|
630
|
+
</placement>
|
631
|
+
<monitoring>
|
632
|
+
<state>disabled</state>
|
633
|
+
</monitoring>
|
634
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
635
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
636
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
637
|
+
<ipAddress>52.62.79.7</ipAddress>
|
638
|
+
<sourceDestCheck>true</sourceDestCheck>
|
639
|
+
<groupSet>
|
640
|
+
<item>
|
641
|
+
<groupId>sg-6ec8860b</groupId>
|
642
|
+
<groupName>default</groupName>
|
643
|
+
</item>
|
644
|
+
</groupSet>
|
645
|
+
<architecture>x86_64</architecture>
|
646
|
+
<rootDeviceType>ebs</rootDeviceType>
|
647
|
+
<rootDeviceName>/dev/sda1</rootDeviceName>
|
648
|
+
<blockDeviceMapping>
|
649
|
+
<item>
|
650
|
+
<deviceName>/dev/sda1</deviceName>
|
651
|
+
<ebs>
|
652
|
+
<volumeId>vol-ccf64a06</volumeId>
|
653
|
+
<status>attached</status>
|
654
|
+
<attachTime>2015-12-07T06:19:46.000Z</attachTime>
|
655
|
+
<deleteOnTermination>true</deleteOnTermination>
|
656
|
+
</ebs>
|
657
|
+
</item>
|
658
|
+
</blockDeviceMapping>
|
659
|
+
<virtualizationType>hvm</virtualizationType>
|
660
|
+
<clientToken/>
|
661
|
+
<hypervisor>xen</hypervisor>
|
662
|
+
<networkInterfaceSet>
|
663
|
+
<item>
|
664
|
+
<networkInterfaceId>eni-f14ccd96</networkInterfaceId>
|
665
|
+
<subnetId>subnet-5ff7683a</subnetId>
|
666
|
+
<vpcId>vpc-d4cd70b1</vpcId>
|
667
|
+
<description/>
|
668
|
+
<ownerId>492770473521</ownerId>
|
669
|
+
<status>in-use</status>
|
670
|
+
<macAddress>02:6f:05:18:b7:c5</macAddress>
|
671
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
672
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
673
|
+
<sourceDestCheck>true</sourceDestCheck>
|
674
|
+
<groupSet>
|
675
|
+
<item>
|
676
|
+
<groupId>sg-6ec8860b</groupId>
|
677
|
+
<groupName>default</groupName>
|
678
|
+
</item>
|
679
|
+
</groupSet>
|
680
|
+
<attachment>
|
681
|
+
<attachmentId>eni-attach-5dfdda63</attachmentId>
|
682
|
+
<deviceIndex>0</deviceIndex>
|
683
|
+
<status>attached</status>
|
684
|
+
<attachTime>2015-12-07T06:19:43.000Z</attachTime>
|
685
|
+
<deleteOnTermination>true</deleteOnTermination>
|
686
|
+
</attachment>
|
687
|
+
<association>
|
688
|
+
<publicIp>52.62.79.7</publicIp>
|
689
|
+
<publicDnsName>ec2-52-62-79-7.ap-southeast-2.compute.amazonaws.com</publicDnsName>
|
690
|
+
<ipOwnerId>amazon</ipOwnerId>
|
691
|
+
</association>
|
692
|
+
<privateIpAddressesSet>
|
693
|
+
<item>
|
694
|
+
<privateIpAddress>172.31.3.155</privateIpAddress>
|
695
|
+
<privateDnsName>ip-172-31-3-155.ap-southeast-2.compute.internal</privateDnsName>
|
696
|
+
<primary>true</primary>
|
697
|
+
<association>
|
698
|
+
<publicIp>52.62.79.7</publicIp>
|
699
|
+
<publicDnsName>ec2-52-62-79-7.ap-southeast-2.compute.amazonaws.com</publicDnsName>
|
700
|
+
<ipOwnerId>amazon</ipOwnerId>
|
701
|
+
</association>
|
702
|
+
</item>
|
703
|
+
</privateIpAddressesSet>
|
704
|
+
</item>
|
705
|
+
</networkInterfaceSet>
|
706
|
+
<ebsOptimized>false</ebsOptimized>
|
707
|
+
</item>
|
708
|
+
</instancesSet>
|
709
|
+
</item>
|
710
|
+
</reservationSet>
|
711
|
+
</DescribeInstancesResponse>
|
712
|
+
http_version:
|
713
|
+
recorded_at: Mon, 07 Dec 2015 06:20:38 GMT
|
714
|
+
- request:
|
715
|
+
method: post
|
716
|
+
uri: https://ec2.ap-southeast-2.amazonaws.com/
|
717
|
+
body:
|
718
|
+
encoding: UTF-8
|
719
|
+
string: Action=CreateTags&ResourceId.1=i-e094e03f&Tag.1.Key=Environment&Tag.1.Value=Staging&Tag.2.Key=Role&Tag.2.Value=app&Version=2015-10-01
|
720
|
+
headers:
|
721
|
+
Content-Type:
|
722
|
+
- application/x-www-form-urlencoded; charset=utf-8
|
723
|
+
Accept-Encoding:
|
724
|
+
- ''
|
725
|
+
User-Agent:
|
726
|
+
- aws-sdk-ruby2/2.2.3 ruby/2.2.3 x86_64-darwin14
|
727
|
+
X-Amz-Date:
|
728
|
+
- 20151207T062038Z
|
729
|
+
Host:
|
730
|
+
- ec2.ap-southeast-2.amazonaws.com
|
731
|
+
X-Amz-Content-Sha256:
|
732
|
+
- fa4837a66036cb8f7054e02535ab45a4de97711e48441591c8a71883e1a2cf38
|
733
|
+
Authorization:
|
734
|
+
- "<AUTHORIZATION>"
|
735
|
+
Content-Length:
|
736
|
+
- '133'
|
737
|
+
Accept:
|
738
|
+
- "*/*"
|
739
|
+
response:
|
740
|
+
status:
|
741
|
+
code: 200
|
742
|
+
message: OK
|
743
|
+
headers:
|
744
|
+
Content-Type:
|
745
|
+
- text/xml;charset=UTF-8
|
746
|
+
Transfer-Encoding:
|
747
|
+
- chunked
|
748
|
+
Vary:
|
749
|
+
- Accept-Encoding
|
750
|
+
Date:
|
751
|
+
- Mon, 07 Dec 2015 06:20:29 GMT
|
752
|
+
Server:
|
753
|
+
- AmazonEC2
|
754
|
+
body:
|
755
|
+
encoding: UTF-8
|
756
|
+
string: |-
|
757
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
758
|
+
<CreateTagsResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/">
|
759
|
+
<requestId>b405cb3f-3a6b-4a9d-a654-3d73eb2c5e3a</requestId>
|
760
|
+
<return>true</return>
|
761
|
+
</CreateTagsResponse>
|
762
|
+
http_version:
|
763
|
+
recorded_at: Mon, 07 Dec 2015 06:20:38 GMT
|
764
|
+
recorded_with: VCR 2.9.3
|