{ "AWSTemplateFormatVersion": "2010-09-09", "Metadata": { "AWS::CloudFormation::Designer": { "19117008-4607-4d30-95d7-9e27b231f551": { "size": { "width": 420, "height": 220 }, "position": { "x": 710, "y": 160 }, "z": 1, "embeds": [ "35c845c6-61b8-422c-be16-f1395a95879f", "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a", "e3f368ef-533b-484c-b3f4-897729901208" ] }, "e3f368ef-533b-484c-b3f4-897729901208": { "size": { "width": 290, "height": 180 }, "position": { "x": 830, "y": 190 }, "z": 2, "parent": "19117008-4607-4d30-95d7-9e27b231f551", "embeds": [ "55447d97-8f3c-4926-a39c-74c03b9457bf", "71200604-24eb-42d2-a245-e9bfa1ff7e46", "b8aa7e94-e775-4133-9d3b-0245316854ef", "b2904db7-7420-44e0-9bd7-078c253f58e8", "05dd39d3-73fc-4732-be16-9966f7fa4769", "0b3b1e8b-5559-4a13-bf67-7312d43b361c" ] }, "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a": { "size": { "width": 60, "height": 60 }, "position": { "x": 950, "y": 90 }, "z": 0, "parent": "19117008-4607-4d30-95d7-9e27b231f551", "embeds": [], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] }, "c7820c4a-775a-4228-9f22-d7b91120d6c9": { "size": { "width": 60, "height": 60 }, "position": { "x": 640, "y": 170 }, "z": 1, "embeds": [] }, "1e18cb0d-7ee5-4790-94f0-2b50519dc1a8": { "source": { "id": "c7820c4a-775a-4228-9f22-d7b91120d6c9" }, "target": { "id": "19117008-4607-4d30-95d7-9e27b231f551" }, "z": 1 }, "35c845c6-61b8-422c-be16-f1395a95879f": { "size": { "width": 80, "height": 90 }, "position": { "x": 740, "y": 170 }, "z": 2, "parent": "19117008-4607-4d30-95d7-9e27b231f551", "embeds": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ] }, "b2904db7-7420-44e0-9bd7-078c253f58e8": { "size": { "width": 60, "height": 60 }, "position": { "x": 850, "y": 210 }, "z": 3, "parent": "e3f368ef-533b-484c-b3f4-897729901208", "embeds": [], "dependson": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] }, "fe5557b3-266c-40ef-b6bd-4ad21f7511c5": { "size": { "width": 60, "height": 60 }, "position": { "x": 750, "y": 190 }, "z": 3, "parent": "35c845c6-61b8-422c-be16-f1395a95879f", "embeds": [], "references": [ "c7820c4a-775a-4228-9f22-d7b91120d6c9" ], "dependson": [ "c7820c4a-775a-4228-9f22-d7b91120d6c9", "1e18cb0d-7ee5-4790-94f0-2b50519dc1a8" ] }, "da60be23-5de7-4310-8cfc-1cae8042ada7": { "source": { "id": "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" }, "target": { "id": "c7820c4a-775a-4228-9f22-d7b91120d6c9" }, "z": 4 }, "d3c5f91d-7e10-4ff9-9a86-e4fd05e69747": { "source": { "id": "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" }, "target": { "id": "c7820c4a-775a-4228-9f22-d7b91120d6c9" }, "z": 5 }, "98f6a038-b5dc-43b9-9901-549f72c5aaf1": { "source": { "id": "b2904db7-7420-44e0-9bd7-078c253f58e8" }, "target": { "id": "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" }, "z": 6 }, "43aacb25-8175-4890-b26f-066ceac37afe": { "source": { "id": "35c845c6-61b8-422c-be16-f1395a95879f" }, "target": { "id": "e3f368ef-533b-484c-b3f4-897729901208" }, "z": 2 }, "05dd39d3-73fc-4732-be16-9966f7fa4769": { "size": { "width": 60, "height": 60 }, "position": { "x": 950, "y": 210 }, "z": 3, "parent": "e3f368ef-533b-484c-b3f4-897729901208", "embeds": [], "dependson": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] }, "0b3b1e8b-5559-4a13-bf67-7312d43b361c": { "size": { "width": 60, "height": 60 }, "position": { "x": 1040, "y": 210 }, "z": 3, "parent": "e3f368ef-533b-484c-b3f4-897729901208", "embeds": [], "dependson": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] }, "9c4181f8-b640-4266-ab00-e30b2bf26f48": { "source": { "id": "fe5557b3-266c-40ef-b6bd-4ad21f7511c5", "selector": "g:nth-child(1) g:nth-child(4) g:nth-child(5) circle:nth-child(1) ", "port": "AWS::DependencyLink-*" }, "target": { "id": "c7820c4a-775a-4228-9f22-d7b91120d6c9" }, "z": 5 }, "ec9732a1-755a-45fd-8f95-00f015fdc006": { "source": { "id": "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" }, "target": { "id": "1e18cb0d-7ee5-4790-94f0-2b50519dc1a8" }, "z": 4 }, "b8aa7e94-e775-4133-9d3b-0245316854ef": { "size": { "width": 60, "height": 60 }, "position": { "x": 850, "y": 290 }, "z": 3, "parent": "e3f368ef-533b-484c-b3f4-897729901208", "embeds": [], "dependson": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] }, "71200604-24eb-42d2-a245-e9bfa1ff7e46": { "size": { "width": 60, "height": 60 }, "position": { "x": 950, "y": 290 }, "z": 3, "parent": "e3f368ef-533b-484c-b3f4-897729901208", "embeds": [], "dependson": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] }, "55447d97-8f3c-4926-a39c-74c03b9457bf": { "size": { "width": 60, "height": 60 }, "position": { "x": 1040, "y": 290 }, "z": 3, "parent": "e3f368ef-533b-484c-b3f4-897729901208", "embeds": [], "dependson": [ "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" ], "isrelatedto": [ "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" ] } } }, "Resources": { "ScaleIOSubnet": { "Type": "AWS::EC2::Subnet", "Properties": { "VpcId": { "Ref": "VPC" }, "CidrBlock": "10.0.0.0/24" }, "Metadata": { "AWS::CloudFormation::Designer": { "id": "e3f368ef-533b-484c-b3f4-897729901208" } } }, "ScaleIOSecGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "VpcId": { "Ref": "VPC" }, "GroupDescription": "Allow access from SSH traffic", "SecurityGroupIngress": [ { "IpProtocol": "tcp", "FromPort": "22", "ToPort": "22", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "443", "ToPort": "443", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "80", "ToPort": "80", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "8080", "ToPort": "8080", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "5050", "ToPort": "5050", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "5051", "ToPort": "5051", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "31000", "ToPort": "32000", "CidrIp": { "Ref": "SSHLocation" } }, { "IpProtocol": "tcp", "FromPort": "1", "ToPort": "65535", "CidrIp": "10.0.0.0/24" }, { "IpProtocol": "udp", "FromPort": "1", "ToPort": "65535", "CidrIp": "10.0.0.0/24" }, { "IpProtocol": "icmp", "FromPort": "-1", "ToPort": "-1", "CidrIp": "10.0.0.0/24" } ] }, "Metadata": { "AWS::CloudFormation::Designer": { "id": "d232ad6c-80ca-4c33-ac38-bbbf89e7dd4a" } } }, "InternetGateway": { "Type": "AWS::EC2::InternetGateway", "Properties": {}, "Metadata": { "AWS::CloudFormation::Designer": { "id": "c7820c4a-775a-4228-9f22-d7b91120d6c9" } } }, "RouteTable": { "Type": "AWS::EC2::RouteTable", "Properties": { "VpcId": { "Ref": "VPC" } }, "Metadata": { "AWS::CloudFormation::Designer": { "id": "35c845c6-61b8-422c-be16-f1395a95879f" } } }, "PublicRoute": { "Type": "AWS::EC2::Route", "Properties": { "DestinationCidrBlock": "0.0.0.0/0", "RouteTableId": { "Ref": "RouteTable" }, "GatewayId": { "Ref": "InternetGateway" } }, "Metadata": { "AWS::CloudFormation::Designer": { "id": "fe5557b3-266c-40ef-b6bd-4ad21f7511c5" } }, "DependsOn": [ "InternetGateway", "GatewayAttachment" ] }, "VPC": { "Type": "AWS::EC2::VPC", "Properties": { "EnableDnsSupport": "true", "EnableDnsHostnames": "true", "CidrBlock": "10.0.0.0/16" }, "Metadata": { "AWS::CloudFormation::Designer": { "id": "19117008-4607-4d30-95d7-9e27b231f551" } } }, "ScaleIONode3": { "Type": "AWS::EC2::Instance", "Properties": { "InstanceType": "t2.medium", "ImageId": "ami-64174404", "Tags": [ { "Key": "Name", "Value": "ScaleIONode3" } ], "KeyName": { "Ref": "KeyName" }, "NetworkInterfaces": [ { "GroupSet": [ { "Ref": "ScaleIOSecGroup" } ], "AssociatePublicIpAddress": "true", "DeviceIndex": "0", "DeleteOnTermination": "true", "PrivateIpAddress": "10.0.0.13", "SubnetId": { "Ref": "ScaleIOSubnet" } } ], "UserData": { "Fn::Base64": { "Fn::Join": [ "", [ "#!/bin/bash -xe\n", "echo ScaleIONode3 > /etc/hostname", "yum update -y aws-cfn-bootstrap\n", "# Install the files and packages from the metadata\n", "/opt/aws/bin/cfn-init -v ", " --stack ", { "Ref": "AWS::StackName" }, " --resource WebServerInstance ", " --configsets All ", " --region ", { "Ref": "AWS::Region" }, "\n", "# Signal the status from cfn-init\n", "/opt/aws/bin/cfn-signal -e $? ", " --stack ", { "Ref": "AWS::StackName" }, " --resource WebServerInstance ", " --region ", { "Ref": "AWS::Region" }, "\n" ] ] } } }, "Metadata": { "AWS::CloudFormation::Designer": { "id": "0b3b1e8b-5559-4a13-bf67-7312d43b361c" }, "AWS::CloudFormation::Init": { "configSets": { "All": [ "ConfigureSampleApp" ] }, "ConfigureSampleApp": { "packages": { "yum": { "httpd": [] } }, "files": { "/var/www/html/index.html": { "content": { "Fn::Join": [ "\n", [ "