@@ -181,6 +181,7 @@ Resources:
181
181
Type : AWS::EC2::Instance
182
182
DependsOn :
183
183
- VPCStack
184
+ - IPAddressVM1
184
185
Properties :
185
186
ImageId :
186
187
Fn::FindInMap :
@@ -226,6 +227,7 @@ Resources:
226
227
DependsOn :
227
228
- VPCStack
228
229
- RedisEC2VM1
230
+ - IPAddressVM2
229
231
Properties :
230
232
ImageId :
231
233
Fn::FindInMap :
@@ -273,6 +275,7 @@ Resources:
273
275
DependsOn :
274
276
- VPCStack
275
277
- RedisEC2VM1
278
+ - IPAddressVM3
276
279
Properties :
277
280
ImageId :
278
281
Fn::FindInMap :
@@ -330,33 +333,44 @@ Resources:
330
333
cd /home/ec2-user
331
334
git clone https://github.com/jphaugla/redisSMSLuaA-A.git
332
335
sudo chown -R ec2-user:ec2-user redisSMSLuaA-A
336
+ yum -y install autoconf automake make gcc-c++
337
+ yum -y install pcre-devel zlib-devel libmemcached-devel libevent-devel openssl-devel
338
+ git clone git://github.com/RedisLabs/memtier_benchmark.git
339
+ cd memtier_benchmark
340
+ autoreconf -ivf
341
+ ./configure
342
+ make
343
+ make install
344
+ cd /home/ec2-user
345
+ chown -R ec2-user:ec2-user memtier_benchmark
346
+
333
347
334
348
RedisARecord1 :
335
349
Type : AWS::Route53::RecordSet
336
350
DependsOn :
337
- - RedisEC2VM1
351
+ - IPAddressVM1
338
352
Properties :
339
353
HostedZoneId : !Ref HostedZoneId
340
354
Comment : DNS name for my instance
341
355
Name : !Join ['', ['node1.', !Ref ClusterName, ., !Ref HostedZoneName ] ]
342
356
Type : A
343
357
TTL : 900
344
358
ResourceRecords :
345
- - !GetAtt RedisEC2VM1.PublicIp
359
+ - !Ref IPAddressVM1
346
360
347
361
RedisARecord2 :
348
362
Condition : Do-Two
349
363
Type : AWS::Route53::RecordSet
350
364
DependsOn :
351
- - RedisEC2VM2
365
+ - IPAddressVM2
352
366
Properties :
353
367
HostedZoneId : !Ref HostedZoneId
354
368
Comment : DNS name for my instance
355
369
Name : !Join ['', ['node2.', !Ref ClusterName, ., !Ref HostedZoneName ] ]
356
370
Type : A
357
371
TTL : 900
358
372
ResourceRecords :
359
- - !GetAtt RedisEC2VM2.PublicIp
373
+ - !Ref IPAddressVM2
360
374
361
375
RedisARecord3 :
362
376
Condition : Create-Three
@@ -370,7 +384,7 @@ Resources:
370
384
Type : A
371
385
TTL : 900
372
386
ResourceRecords :
373
- - !GetAtt RedisEC2VM3.PublicIp
387
+ - !Ref IPAddressVM3
374
388
375
389
RedisNSRecord :
376
390
Type : AWS::Route53::RecordSet
0 commit comments