|
|
@@ -254,7 +254,7 @@ Resources:
|
|
|
GroupName: sg_elb
|
|
|
Tags:
|
|
|
- Key: Name
|
|
|
- Value: sg-elb
|
|
|
+ Value: sg_elb
|
|
|
SecurityGroupIngress:
|
|
|
- IpProtocol: tcp
|
|
|
FromPort: 80
|
|
|
@@ -270,11 +270,11 @@ Resources:
|
|
|
webgroup:
|
|
|
Type: 'AWS::EC2::SecurityGroup'
|
|
|
Properties:
|
|
|
- GroupDescription: sg_server
|
|
|
- GroupName: sg_server
|
|
|
+ GroupDescription: !Ref sgName
|
|
|
+ GroupName: !Ref sgName
|
|
|
Tags:
|
|
|
- Key: Name
|
|
|
- Value: sg_server
|
|
|
+ Value: !Ref sgName
|
|
|
SecurityGroupIngress:
|
|
|
- IpProtocol: tcp
|
|
|
FromPort: 7777
|
|
|
@@ -365,6 +365,9 @@ Parameters:
|
|
|
cacheport:
|
|
|
Type: String
|
|
|
Default: '11211'
|
|
|
+ sgName:
|
|
|
+ Type: String
|
|
|
+ Default: 'sg_ai'
|
|
|
Outputs:
|
|
|
pubnet1id:
|
|
|
Value: !Ref pubnet1
|
|
|
@@ -380,9 +383,9 @@ Outputs:
|
|
|
Value: !Ref dbnet2
|
|
|
vpcid:
|
|
|
Value: !Ref vpc1
|
|
|
- elbgroupid:
|
|
|
+ elbsg:
|
|
|
Value: !Ref elbgroup
|
|
|
- webgroupid:
|
|
|
+ serversg:
|
|
|
Value: !Ref webgroup
|
|
|
- dbgroupid:
|
|
|
- Value: !Ref dbgroup
|
|
|
+ dbsg:
|
|
|
+ Value: !Ref dbgroup
|