diff --git a/data/templates/cf/Windows-w-SQL-security.template b/data/templates/cf/SQL-security.template similarity index 67% rename from data/templates/cf/Windows-w-SQL-security.template rename to data/templates/cf/SQL-security.template index 5590cb5..2cc2a52 100644 --- a/data/templates/cf/Windows-w-SQL-security.template +++ b/data/templates/cf/SQL-security.template @@ -1,26 +1,11 @@ { - "AWSTemplateFormatVersion": "2010-09-09", - - "Parameters": { - "KeyName": { - "Description": "Key Pair name for Load Balancer", - "Type": "String", - "Default": "murano-lb-key" - } - }, - "Resources": { "$instanceName": { - "Type": "AWS::EC2::Instance", "Properties": { - "InstanceType": "$instanceType", - "ImageId": "$imageName", - "AvailabilityZone": "$availabilityZone", - "UserData": "$userData", - "SecurityGroups" : [ {"Ref" : "MsSqlSecuritygroup"} ] + "SecurityGroups" : [ {"Ref" : "MsSqlSecurityGroup"} ] } }, - "MsSqlSecuritygroup": { + "MsSqlSecurityGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "SecurityGroupIngress": [ @@ -52,8 +37,5 @@ "GroupDescription": "Enable MS SQL access" } } - }, - - "Outputs": { } } diff --git a/data/templates/cf/Windows.template b/data/templates/cf/Windows.template index d42d425..c69fc8f 100644 --- a/data/templates/cf/Windows.template +++ b/data/templates/cf/Windows.template @@ -16,9 +16,36 @@ "InstanceType" : "$instanceType", "ImageId" : "$imageName", "AvailabilityZone" : "$availabilityZone", - "UserData": "$userData" + "UserData": "$userData", + "SecurityGroups" : [ {"Ref" : "MuranoDefaultSecurityGroup"} ] } - } + }, + "MuranoDefaultSecurityGroup": { + "Type": "AWS::EC2::SecurityGroup", + "Properties": { + "SecurityGroupIngress": [ + { + "ToPort": 3389, + "IpProtocol": "tcp", + "FromPort": 3389, + "CidrIp": "0.0.0.0/0" + }, + { + "ToPort": 22, + "IpProtocol": "tcp", + "FromPort": 22, + "CidrIp": "0.0.0.0/0" + }, + { + "ToPort": -1, + "IpProtocol": "icmp", + "FromPort": -1, + "CidrIp": "0.0.0.0/0" + } + ], + "GroupDescription": "Default security group for Murano Environments" + } + } }, "Outputs" : { diff --git a/data/workflows/MsSqlServer.xml b/data/workflows/MsSqlServer.xml index 5fee60e..547870a 100644 --- a/data/workflows/MsSqlServer.xml +++ b/data/workflows/MsSqlServer.xml @@ -13,7 +13,7 @@ ( @@ -44,6 +44,31 @@ + + + ( + + + + + ( + Unable to open SQL ports on instance ) due to