{ "Type": "AWS::S3::Bucket", "Properties": { "AccessControl": "PublicRead" } }, "Ec2Instance": { "Type": "AWS::EC2::Instance", "Properties": { "SecurityGroups": [ { "Ref": "InstanceSecurityGroup" } ], "KeyName": "mykey", "ImageId": "" } }, "InstanceSecurityGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "GroupDescription": "Enable SSH access via port 22", "SecurityGroupIngress": [ { "IpProtocol": "tcp", "FromPort": "22", "ToPort": "22", "CidrIp": "0.0.0.0/0" } ] } } } } { "resources": [ { "name": "mysqlserver", "type": "Microsoft.Sql/servers", "properties": { "administratorLogin": "admin", "administratorLoginPassword": "password$123" }, "resources": [ { "name": "mysqldatabase", "type": "databases", "dependsOn": ["[concat('Microsoft.Sql/servers/', 'mysqlserver')]"], "properties": { "edition": "Web", "maxSizeBytes": "1073741824" } }, { "type": "firewallrules", "name": "AllowAllWindowsAzureIps", "dependsOn": ["[concat('Microsoft.Sql/servers/', 'mysqlserver')]"], "properties": { "endIpAddress": "255.255.255.255", "startIpAddress": "0.0.0.0" } } ] } ] }