소스 검색

update CloudFormation/vpc.yaml.

xdc 5 년 전
부모
커밋
a6095f5c63
1개의 변경된 파일11개의 추가작업 그리고 8개의 파일을 삭제
  1. 11 8
      CloudFormation/vpc.yaml

+ 11 - 8
CloudFormation/vpc.yaml

@@ -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