Advertisement
keenan-v1

Test Instance Template

Mar 2nd, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.98 KB | None | 0 0
  1. {
  2.     "Resources": {
  3.         "BaphometVolumeAttachment": {
  4.             "Properties": {
  5.                 "Device": "/dev/sdc",
  6.                 "InstanceId": {
  7.                     "Ref": "OracleBaphometDruskaGameServerInstance"
  8.                 },
  9.                 "VolumeId": {
  10.                     "Fn::ImportValue": "BaphometEBSVolumeId"
  11.                 }
  12.             },
  13.             "Type": "AWS::EC2::VolumeAttachment"
  14.         },
  15.         "DruskaVolumeAttachment": {
  16.             "Properties": {
  17.                 "Device": "/dev/sdd",
  18.                 "InstanceId": {
  19.                     "Ref": "OracleBaphometDruskaGameServerInstance"
  20.                 },
  21.                 "VolumeId": {
  22.                     "Fn::ImportValue": "DruskaEBSVolumeId"
  23.                 }
  24.             },
  25.             "Type": "AWS::EC2::VolumeAttachment"
  26.         },
  27.         "OracleBaphometDruskaGameServerInstance": {
  28.             "Properties": {
  29.                 "AvailabilityZone": "us-east-1a",
  30.                 "ImageId": "ami-0f9e7e8867f55fd8e",
  31.                 "InstanceType": "t3.medium",
  32.                 "KeyName": "wantsmore-coffee-us-east-1",
  33.                 "NetworkInterfaces": [
  34.                     {
  35.                         "AssociatePublicIpAddress": "true",
  36.                         "DeleteOnTermination": "true",
  37.                         "DeviceIndex": "0",
  38.                         "GroupSet": [
  39.                             {
  40.                                 "Ref": "TestClusterDefaultSecurityGroup"
  41.                             },
  42.                             {
  43.                                 "Ref": "TestClusterOracleBaphometDruskaGameServerInstanceSecurityGroup"
  44.                             }
  45.                         ],
  46.                         "SubnetId": {
  47.                             "Ref": "TestClusterSubnet"
  48.                         }
  49.                     }
  50.                 ]
  51.             },
  52.             "Type": "AWS::EC2::Instance"
  53.         },
  54.         "OracleBaphometDruskaGameServerInstanceIPAddress": {
  55.             "DependsOn": "TestClusterAttachGateway",
  56.             "Properties": {
  57.                 "Domain": "vpc",
  58.                 "InstanceId": {
  59.                     "Ref": "OracleBaphometDruskaGameServerInstance"
  60.                 }
  61.             },
  62.             "Type": "AWS::EC2::EIP"
  63.         },
  64.         "OracleVolumeAttachment": {
  65.             "Properties": {
  66.                 "Device": "/dev/sdb",
  67.                 "InstanceId": {
  68.                     "Ref": "OracleBaphometDruskaGameServerInstance"
  69.                 },
  70.                 "VolumeId": {
  71.                     "Fn::ImportValue": "OracleEBSVolumeId"
  72.                 }
  73.             },
  74.             "Type": "AWS::EC2::VolumeAttachment"
  75.         },
  76.         "TestClusterAttachGateway": {
  77.             "Properties": {
  78.                 "InternetGatewayId": {
  79.                     "Ref": "TestClusterInternetGateway"
  80.                 },
  81.                 "VpcId": {
  82.                     "Ref": "TestClusterVPC"
  83.                 }
  84.             },
  85.             "Type": "AWS::EC2::VPCGatewayAttachment"
  86.         },
  87.         "TestClusterDefaultSecurityGroup": {
  88.             "Properties": {
  89.                 "GroupDescription": "Default ports",
  90.                 "SecurityGroupIngress": [
  91.                     {
  92.                         "CidrIp": "0.0.0.0/0",
  93.                         "FromPort": "22",
  94.                         "IpProtocol": "tcp",
  95.                         "ToPort": "22"
  96.                     },
  97.                     {
  98.                         "CidrIp": "0.0.0.0/0",
  99.                         "FromPort": "80",
  100.                         "IpProtocol": "tcp",
  101.                         "ToPort": "80"
  102.                     },
  103.                     {
  104.                         "CidrIp": "0.0.0.0/0",
  105.                         "FromPort": "443",
  106.                         "IpProtocol": "tcp",
  107.                         "ToPort": "443"
  108.                     }
  109.                 ],
  110.                 "VpcId": {
  111.                     "Ref": "TestClusterVPC"
  112.                 }
  113.             },
  114.             "Type": "AWS::EC2::SecurityGroup"
  115.         },
  116.         "TestClusterInternetGateway": {
  117.             "Properties": {
  118.                 "Tags": [
  119.                     {
  120.                         "Key": "Application",
  121.                         "Value": {
  122.                             "Ref": "AWS::StackId"
  123.                         }
  124.                     },
  125.                     {
  126.                         "Key": "Name",
  127.                         "Value": {
  128.                             "Fn::Join": [
  129.                                 "-",
  130.                                 [
  131.                                     {
  132.                                         "Ref": "AWS::StackName"
  133.                                     },
  134.                                     "InternetGateway"
  135.                                 ]
  136.                             ]
  137.                         }
  138.                     }
  139.                 ]
  140.             },
  141.             "Type": "AWS::EC2::InternetGateway"
  142.         },
  143.         "TestClusterOracleBaphometDruskaGameServerInstanceSecurityGroup": {
  144.             "Properties": {
  145.                 "GroupDescription": "Public ports",
  146.                 "SecurityGroupIngress": [
  147.                     {
  148.                         "CidrIp": "0.0.0.0/0",
  149.                         "Description": "Wurm port for Oracle",
  150.                         "FromPort": 3300,
  151.                         "IpProtocol": "tcp",
  152.                         "ToPort": 3300
  153.                     },
  154.                     {
  155.                         "CidrIp": "0.0.0.0/0",
  156.                         "Description": "Wurm port for Baphomet",
  157.                         "FromPort": 3301,
  158.                         "IpProtocol": "tcp",
  159.                         "ToPort": 3301
  160.                     },
  161.                     {
  162.                         "CidrIp": "0.0.0.0/0",
  163.                         "Description": "Wurm port for Druska",
  164.                         "FromPort": 3302,
  165.                         "IpProtocol": "tcp",
  166.                         "ToPort": 3302
  167.                     }
  168.                 ],
  169.                 "VpcId": {
  170.                     "Ref": "TestClusterVPC"
  171.                 }
  172.             },
  173.             "Type": "AWS::EC2::SecurityGroup"
  174.         },
  175.         "TestClusterRoute": {
  176.             "DependsOn": "TestClusterAttachGateway",
  177.             "Properties": {
  178.                 "DestinationCidrBlock": "0.0.0.0/0",
  179.                 "GatewayId": {
  180.                     "Ref": "TestClusterInternetGateway"
  181.                 },
  182.                 "RouteTableId": {
  183.                     "Ref": "TestClusterRouteTable"
  184.                 }
  185.             },
  186.             "Type": "AWS::EC2::Route"
  187.         },
  188.         "TestClusterRouteTable": {
  189.             "Properties": {
  190.                 "Tags": [
  191.                     {
  192.                         "Key": "Application",
  193.                         "Value": {
  194.                             "Ref": "AWS::StackId"
  195.                         }
  196.                     },
  197.                     {
  198.                         "Key": "Name",
  199.                         "Value": {
  200.                             "Fn::Join": [
  201.                                 "-",
  202.                                 [
  203.                                     {
  204.                                         "Ref": "AWS::StackName"
  205.                                     },
  206.                                     "RouteTable"
  207.                                 ]
  208.                             ]
  209.                         }
  210.                     }
  211.                 ],
  212.                 "VpcId": {
  213.                     "Ref": "TestClusterVPC"
  214.                 }
  215.             },
  216.             "Type": "AWS::EC2::RouteTable"
  217.         },
  218.         "TestClusterSubnet": {
  219.             "Properties": {
  220.                 "AvailabilityZone": "us-east-1a",
  221.                 "CidrBlock": "192.168.56.0/24",
  222.                 "Tags": [
  223.                     {
  224.                         "Key": "Application",
  225.                         "Value": {
  226.                             "Ref": "AWS::StackId"
  227.                         }
  228.                     },
  229.                     {
  230.                         "Key": "Name",
  231.                         "Value": {
  232.                             "Fn::Join": [
  233.                                 "-",
  234.                                 [
  235.                                     {
  236.                                         "Ref": "AWS::StackName"
  237.                                     },
  238.                                     "Subnet"
  239.                                 ]
  240.                             ]
  241.                         }
  242.                     }
  243.                 ],
  244.                 "VpcId": {
  245.                     "Ref": "TestClusterVPC"
  246.                 }
  247.             },
  248.             "Type": "AWS::EC2::Subnet"
  249.         },
  250.         "TestClusterSubnetRouteTableAssociation": {
  251.             "Properties": {
  252.                 "RouteTableId": {
  253.                     "Ref": "TestClusterRouteTable"
  254.                 },
  255.                 "SubnetId": {
  256.                     "Ref": "TestClusterSubnet"
  257.                 }
  258.             },
  259.             "Type": "AWS::EC2::SubnetRouteTableAssociation"
  260.         },
  261.         "TestClusterVPC": {
  262.             "Properties": {
  263.                 "CidrBlock": "192.168.0.0/16",
  264.                 "Tags": [
  265.                     {
  266.                         "Key": "Application",
  267.                         "Value": {
  268.                             "Ref": "AWS::StackId"
  269.                         }
  270.                     },
  271.                     {
  272.                         "Key": "Name",
  273.                         "Value": {
  274.                             "Fn::Join": [
  275.                                 "-",
  276.                                 [
  277.                                     {
  278.                                         "Ref": "AWS::StackName"
  279.                                     },
  280.                                     "VPC"
  281.                                 ]
  282.                             ]
  283.                         }
  284.                     }
  285.                 ]
  286.             },
  287.             "Type": "AWS::EC2::VPC"
  288.         }
  289.     }
  290. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement