Skip to content

Commit e337b88

Browse files
committed
Merge branch 'main' of github.com:jphaugla/redisSMSLuaA-A into main
2 parents 6522898 + d0e7cd2 commit e337b88

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

templates/MasterWithRedis.yaml

+19-5
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ Resources:
181181
Type: AWS::EC2::Instance
182182
DependsOn:
183183
- VPCStack
184+
- IPAddressVM1
184185
Properties:
185186
ImageId:
186187
Fn::FindInMap:
@@ -226,6 +227,7 @@ Resources:
226227
DependsOn:
227228
- VPCStack
228229
- RedisEC2VM1
230+
- IPAddressVM2
229231
Properties:
230232
ImageId:
231233
Fn::FindInMap:
@@ -273,6 +275,7 @@ Resources:
273275
DependsOn:
274276
- VPCStack
275277
- RedisEC2VM1
278+
- IPAddressVM3
276279
Properties:
277280
ImageId:
278281
Fn::FindInMap:
@@ -330,33 +333,44 @@ Resources:
330333
cd /home/ec2-user
331334
git clone https://github.com/jphaugla/redisSMSLuaA-A.git
332335
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+
333347

334348
RedisARecord1:
335349
Type: AWS::Route53::RecordSet
336350
DependsOn:
337-
- RedisEC2VM1
351+
- IPAddressVM1
338352
Properties:
339353
HostedZoneId: !Ref HostedZoneId
340354
Comment: DNS name for my instance
341355
Name: !Join ['', ['node1.', !Ref ClusterName, ., !Ref HostedZoneName ] ]
342356
Type: A
343357
TTL: 900
344358
ResourceRecords:
345-
- !GetAtt RedisEC2VM1.PublicIp
359+
- !Ref IPAddressVM1
346360

347361
RedisARecord2:
348362
Condition: Do-Two
349363
Type: AWS::Route53::RecordSet
350364
DependsOn:
351-
- RedisEC2VM2
365+
- IPAddressVM2
352366
Properties:
353367
HostedZoneId: !Ref HostedZoneId
354368
Comment: DNS name for my instance
355369
Name: !Join ['', ['node2.', !Ref ClusterName, ., !Ref HostedZoneName ] ]
356370
Type: A
357371
TTL: 900
358372
ResourceRecords:
359-
- !GetAtt RedisEC2VM2.PublicIp
373+
- !Ref IPAddressVM2
360374

361375
RedisARecord3:
362376
Condition: Create-Three
@@ -370,7 +384,7 @@ Resources:
370384
Type: A
371385
TTL: 900
372386
ResourceRecords:
373-
- !GetAtt RedisEC2VM3.PublicIp
387+
- !Ref IPAddressVM3
374388

375389
RedisNSRecord:
376390
Type: AWS::Route53::RecordSet

0 commit comments

Comments
 (0)