uopspop

Untitled

Apr 17th, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.93 KB | None | 0 0
  1. {
  2.   "AWSTemplateFormatVersion": "2010-09-09",
  3.   "Parameters" : {
  4.     "KeyPairName" : {
  5.       "Description" : "You must have your public key on your aws - ec2 - network & security - key pairs section",
  6.       "Type" : "String"
  7.     }
  8.   },  
  9.   "Resources": {
  10.     "vpcd3adf3aa": {
  11.       "Type": "AWS::EC2::VPC",
  12.       "Properties": {
  13.         "CidrBlock": "10.99.0.0/16",
  14.         "InstanceTenancy": "default",
  15.         "EnableDnsSupport": "true",
  16.         "EnableDnsHostnames": "false",
  17.         "Tags": [
  18.           {
  19.             "Key": "Name",
  20.             "Value": "st-cloudformation"
  21.           }
  22.         ]
  23.       }
  24.     },
  25.     "subnet1b9e3a50": {
  26.       "Type": "AWS::EC2::Subnet",
  27.       "Properties": {
  28.         "CidrBlock": "10.99.0.0/24",
  29.         "AvailabilityZone": "us-west-2b",
  30.         "VpcId": {
  31.           "Ref": "vpcd3adf3aa"
  32.         },
  33.         "Tags": [
  34.           {
  35.             "Key": "Name",
  36.             "Value": "st-cloudformation"
  37.           }
  38.         ]
  39.       }
  40.     },
  41.     "igw14057072": {
  42.       "Type": "AWS::EC2::InternetGateway",
  43.       "Properties": {
  44.         "Tags": [
  45.           {
  46.             "Key": "Name",
  47.             "Value": "st-cloudformation"
  48.           }
  49.         ]
  50.       }
  51.     },
  52.     "doptd75f46b5": {
  53.       "Type": "AWS::EC2::DHCPOptions",
  54.       "Properties": {
  55.         "DomainName": "us-west-2.compute.internal",
  56.         "DomainNameServers": [
  57.           "AmazonProvidedDNS"
  58.         ]
  59.       }
  60.     },
  61.     "acl80f553f8": {
  62.       "Type": "AWS::EC2::NetworkAcl",
  63.       "Properties": {
  64.         "VpcId": {
  65.           "Ref": "vpcd3adf3aa"
  66.         },
  67.         "Tags": [
  68.           {
  69.             "Key": "Name",
  70.             "Value": "st-cloudformation"
  71.           }
  72.         ]
  73.       }
  74.     },
  75.     "rtb41104239": {
  76.       "Type": "AWS::EC2::RouteTable",
  77.       "Properties": {
  78.         "VpcId": {
  79.           "Ref": "vpcd3adf3aa"
  80.         },
  81.         "Tags": [
  82.           {
  83.             "Key": "Name",
  84.             "Value": "st-cloudformation-public"
  85.           }
  86.         ]
  87.       }
  88.     },
  89.     "instancei012c21b7d8e198887": {
  90.       "Type": "AWS::EC2::Instance",
  91.       "Properties": {
  92.         "DisableApiTermination": "false",
  93.         "InstanceInitiatedShutdownBehavior": "stop",
  94.         "ImageId": "ami-223f945a",
  95.         "InstanceType": "t2.micro",
  96.         "KeyName": {
  97.             "Ref": "KeyPairName"
  98.         },     
  99.         "Monitoring": "false",
  100.         "Tags": [
  101.           {
  102.             "Key": "Name",
  103.             "Value": "st-cloudformation"
  104.           }
  105.         ],
  106.         "NetworkInterfaces": [
  107.           {
  108.             "DeleteOnTermination": "true",
  109.             "Description": "Primary network interface",
  110.             "DeviceIndex": 0,
  111.             "SubnetId": {
  112.               "Ref": "subnet1b9e3a50"
  113.             },
  114.             "PrivateIpAddresses": [
  115.               {
  116.                 "PrivateIpAddress": "10.99.0.151",
  117.                 "Primary": "true"
  118.               }
  119.             ],
  120.             "GroupSet": [
  121.               {
  122.                 "Ref": "sgstcloudformation"
  123.               }
  124.             ],
  125.             "AssociatePublicIpAddress": "true"
  126.           }
  127.         ]
  128.       }
  129.     },
  130.     "sgstcloudformation": {
  131.       "Type": "AWS::EC2::SecurityGroup",
  132.       "Properties": {
  133.         "GroupDescription": "launch-wizard-37 created 2018-04-17T19:55:21.240+08:00",
  134.         "VpcId": {
  135.           "Ref": "vpcd3adf3aa"
  136.         },
  137.         "Tags": [
  138.           {
  139.             "Key": "Name",
  140.             "Value": "st-cloudformation"
  141.           }
  142.         ]
  143.       }
  144.     },
  145.     "acl1": {
  146.       "Type": "AWS::EC2::NetworkAclEntry",
  147.       "Properties": {
  148.         "CidrBlock": "0.0.0.0/0",
  149.         "Egress": "true",
  150.         "Protocol": "-1",
  151.         "RuleAction": "allow",
  152.         "RuleNumber": "100",
  153.         "NetworkAclId": {
  154.           "Ref": "acl80f553f8"
  155.         }
  156.       }
  157.     },
  158.     "acl2": {
  159.       "Type": "AWS::EC2::NetworkAclEntry",
  160.       "Properties": {
  161.         "CidrBlock": "0.0.0.0/0",
  162.         "Protocol": "-1",
  163.         "RuleAction": "allow",
  164.         "RuleNumber": "100",
  165.         "NetworkAclId": {
  166.           "Ref": "acl80f553f8"
  167.         }
  168.       }
  169.     },
  170.     "subnetacl1": {
  171.       "Type": "AWS::EC2::SubnetNetworkAclAssociation",
  172.       "Properties": {
  173.         "NetworkAclId": {
  174.           "Ref": "acl80f553f8"
  175.         },
  176.         "SubnetId": {
  177.           "Ref": "subnet1b9e3a50"
  178.         }
  179.       }
  180.     },
  181.     "gw1": {
  182.       "Type": "AWS::EC2::VPCGatewayAttachment",
  183.       "Properties": {
  184.         "VpcId": {
  185.           "Ref": "vpcd3adf3aa"
  186.         },
  187.         "InternetGatewayId": {
  188.           "Ref": "igw14057072"
  189.         }
  190.       }
  191.     },
  192.     "route1": {
  193.       "Type": "AWS::EC2::Route",
  194.       "Properties": {
  195.         "DestinationCidrBlock": "0.0.0.0/0",
  196.         "RouteTableId": {
  197.           "Ref": "rtb41104239"
  198.         },
  199.         "GatewayId": {
  200.           "Ref": "igw14057072"
  201.         }
  202.       },
  203.       "DependsOn": "gw1"
  204.     },
  205.     "SubnetRouteTableAssociation008": {
  206.       "Type" : "AWS::EC2::SubnetRouteTableAssociation",
  207.       "Properties" : {
  208.         "RouteTableId" : {
  209.           "Ref": "rtb41104239"
  210.         },
  211.         "SubnetId" : {
  212.           "Ref": "subnet1b9e3a50"
  213.         }
  214.       }
  215.     },      
  216.     "dchpassoc1": {
  217.       "Type": "AWS::EC2::VPCDHCPOptionsAssociation",
  218.       "Properties": {
  219.         "VpcId": {
  220.           "Ref": "vpcd3adf3aa"
  221.         },
  222.         "DhcpOptionsId": {
  223.           "Ref": "doptd75f46b5"
  224.         }
  225.       }
  226.     },
  227.     "ingress1": {
  228.       "Type": "AWS::EC2::SecurityGroupIngress",
  229.       "Properties": {
  230.         "GroupId": {
  231.           "Ref": "sgstcloudformation"
  232.         },
  233.         "IpProtocol": "tcp",
  234.         "FromPort": "22",
  235.         "ToPort": "22",
  236.         "CidrIp": "0.0.0.0/0"
  237.       }
  238.     },
  239.     "egress1": {
  240.       "Type": "AWS::EC2::SecurityGroupEgress",
  241.       "Properties": {
  242.         "GroupId": {
  243.           "Ref": "sgstcloudformation"
  244.         },
  245.         "IpProtocol": "-1",
  246.         "CidrIp": "0.0.0.0/0"
  247.       }
  248.     }
  249.   },
  250.   "Description": "st-formation"
  251. }
Advertisement
Add Comment
Please, Sign In to add comment