{

"AWSTemplateFormatVersion": "2010-09-09",
"Description": "AWS CloudFormation Sample Template.",
"Parameters" : {
  "AZ1" : {
    "Default" : "ap-northeast-1a",
    "Description" : "AZ",
    "Type" : "String",
    "AllowedValues" : [ "ap-northeast-1a","ap-northeast-1c","us-west-2a","us-west-2b","us-west-2c","us-east-1a","us-east-1b","us-east-1c","us-east-1d","us-east-1e" ],
    "ConstraintDescription" : "must select a valid availability zone."
  },
  "AZ2" : {
    "Default" : "ap-northeast-1c",
    "Description" : "AZ",
    "Type" : "String",
    "AllowedValues" : [ "ap-northeast-1a","ap-northeast-1c","us-west-2a","us-west-2b","us-west-2c","us-east-1a","us-east-1b","us-east-1c","us-east-1d","us-east-1e" ],
    "ConstraintDescription" : "must select a valid availability zone."
  }
},
"Mappings": {
  "SubnetConfig": {
    "VPC": {
      "CIDR": "10.0.0.0/16"
    },
    "Private-1a": {
      "CIDR": "10.0.2.0/24"
    },
    "Private-1c": {
      "CIDR": "10.0.3.0/24"
    }
  }
},
"Resources": {
  "VPC": {
    "Type": "AWS::EC2::VPC",
    "Properties": {
      "CidrBlock": {
        "Fn::FindInMap": [
          "SubnetConfig",
          "VPC",
          "CIDR"
        ]
      },
      "Tags": [
        {
          "Key": "Application",
          "Value": {
            "Ref": "AWS::StackId"
          }
        },
        {
          "Key": "Network",
          "Value": "Private"
        }
      ]
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "36f558fe-7a2b-4a24-9edb-3b9a10d33217"
      }
    }
  },
  "PrivateSubnet1a": {
    "Type": "AWS::EC2::Subnet",
    "Properties": {
      "VpcId": {
        "Ref": "VPC"
      },
      "CidrBlock": {
        "Fn::FindInMap": [
          "SubnetConfig",
          "Private-1a",
          "CIDR"
        ]
      },
      "AvailabilityZone": {"Ref": "AZ1"},
      "Tags": [
        {
          "Key": "Application",
          "Value": {
            "Ref": "AWS::StackId"
          }
        },
        {
          "Key": "Network",
          "Value": "Private"
        }
      ]
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "c88e3060-c887-4c7a-8b25-74dba8c01b1f"
      }
    }
  },
  "PrivateSubnet1c": {
    "Type": "AWS::EC2::Subnet",
    "Properties": {
      "VpcId": {
        "Ref": "VPC"
      },
      "CidrBlock": {
        "Fn::FindInMap": [
          "SubnetConfig",
          "Private-1c",
          "CIDR"
        ]
      },
      "AvailabilityZone": {"Ref": "AZ2"},
      "Tags": [
        {
          "Key": "Application",
          "Value": {
            "Ref": "AWS::StackId"
          }
        },
        {
          "Key": "Network",
          "Value": "Private"
        }
      ]
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "f950a56e-a1ed-4e65-97df-1b8869da8b59"
      }
    }
  },
  "PrivateRouteTable": {
    "Type": "AWS::EC2::RouteTable",
    "Properties": {
      "VpcId": {
        "Ref": "VPC"
      },
      "Tags": [
        {
          "Key": "Application",
          "Value": {
            "Ref": "AWS::StackId"
          }
        },
        {
          "Key": "Network",
          "Value": "Private"
        }
      ]
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "e13eddcb-d508-41ed-86ba-52721609f64d"
      }
    }
  },
  "PrivateSubnetRouteTableAssociation1a": {
    "Type": "AWS::EC2::SubnetRouteTableAssociation",
    "Properties": {
      "SubnetId": {
        "Ref": "PrivateSubnet1a"
      },
      "RouteTableId": {
        "Ref": "PrivateRouteTable"
      }
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "6459bdbb-c25c-4bd7-9ea6-e78fc7da90d0"
      }
    }
  },
  "PrivateSubnetRouteTableAssociation1c": {
    "Type": "AWS::EC2::SubnetRouteTableAssociation",
    "Properties": {
      "SubnetId": {
        "Ref": "PrivateSubnet1c"
      },
      "RouteTableId": {
        "Ref": "PrivateRouteTable"
      }
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "6237f72f-664d-4c7d-bbb9-52980fb4f620"
      }
    }
  },
  "PrivateNetworkAcl": {
    "Type": "AWS::EC2::NetworkAcl",
    "Properties": {
      "VpcId": {
        "Ref": "VPC"
      },
      "Tags": [
        {
          "Key": "Application",
          "Value": {
            "Ref": "AWS::StackId"
          }
        },
        {
          "Key": "Network",
          "Value": "Private"
        }
      ]
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "5f563655-d27c-492d-9458-8b36dd950a7e"
      }
    }
  },
  "InboundPrivateNetworkAclEntry": {
    "Type": "AWS::EC2::NetworkAclEntry",
    "Properties": {
      "NetworkAclId": {
        "Ref": "PrivateNetworkAcl"
      },
      "RuleNumber": "100",
      "Protocol": "6",
      "RuleAction": "allow",
      "Egress": "false",
      "CidrBlock": "0.0.0.0/0",
      "PortRange": {
        "From": "0",
        "To": "65535"
      }
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "81a03e88-a76c-4335-be92-01c433e692cf"
      }
    }
  },
  "OutBoundPrivateNetworkAclEntry": {
    "Type": "AWS::EC2::NetworkAclEntry",
    "Properties": {
      "NetworkAclId": {
        "Ref": "PrivateNetworkAcl"
      },
      "RuleNumber": "100",
      "Protocol": "6",
      "RuleAction": "allow",
      "Egress": "true",
      "CidrBlock": "0.0.0.0/0",
      "PortRange": {
        "From": "0",
        "To": "65535"
      }
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "0d4bfe6f-ab3b-434a-bb71-6b0d7a74c1c8"
      }
    }
  },
  "PrivateSubnetNetworkAclAssociation1a": {
    "Type": "AWS::EC2::SubnetNetworkAclAssociation",
    "Properties": {
      "SubnetId": {
        "Ref": "PrivateSubnet1a"
      },
      "NetworkAclId": {
        "Ref": "PrivateNetworkAcl"
      }
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "c1a742ea-be11-4f90-9edb-00340f314443"
      }
    }
  },
  "PrivateSubnetNetworkAclAssociation1c": {
    "Type": "AWS::EC2::SubnetNetworkAclAssociation",
    "Properties": {
      "SubnetId": {
        "Ref": "PrivateSubnet1c"
      },
      "NetworkAclId": {
        "Ref": "PrivateNetworkAcl"
      }
    },
    "Metadata": {
      "AWS::CloudFormation::Designer": {
        "id": "84446bb6-0790-4a7b-868e-776127af1b1a"
      }
    }
  }
},
"Outputs": {
  "VPCID" : {
    "Value" : { "Ref" : "VPC" },
    "Description" : "VPC ID"
  },
  "SUBNETPRI1" : {
    "Value" : { "Ref" : "PrivateSubnet1a" },
    "Description" : "PrivateSubnet1"
  },
  "SUBNETPRI2" : {
    "Value" : { "Ref" : "PrivateSubnet1c" },
    "Description" : "PrivateSubnet2"
  }
},
"Metadata": {
  "AWS::CloudFormation::Designer": {
    "7354dd3a-e180-418e-8cd2-a9b2ad2a4666": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": 900,
        "y": 650
      },
      "z": 1,
      "embeds": []
    },
    "36f558fe-7a2b-4a24-9edb-3b9a10d33217": {
      "size": {
        "width": 1120,
        "height": 860
      },
      "position": {
        "x": -350,
        "y": 530
      },
      "z": 1,
      "embeds": [
        "5f563655-d27c-492d-9458-8b36dd950a7e",
        "e13eddcb-d508-41ed-86ba-52721609f64d",
        "f950a56e-a1ed-4e65-97df-1b8869da8b59",
        "c88e3060-c887-4c7a-8b25-74dba8c01b1f",
        "9d9f7c73-1580-4f8e-8463-6e27fb43e766",
        "35457506-b697-467e-925b-61a48305e0da",
        "21cff9ba-e2c6-4d76-80d2-7f10d6b618b0",
        "d17f3169-9687-4907-ac33-04ce215fded7"
      ]
    },
    "5f563655-d27c-492d-9458-8b36dd950a7e": {
      "size": {
        "width": 190,
        "height": 310
      },
      "position": {
        "x": -260,
        "y": 1010
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": [
        "0d4bfe6f-ab3b-434a-bb71-6b0d7a74c1c8",
        "81a03e88-a76c-4335-be92-01c433e692cf"
      ]
    },
    "0d4bfe6f-ab3b-434a-bb71-6b0d7a74c1c8": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -200,
        "y": 1080
      },
      "z": 3,
      "parent": "5f563655-d27c-492d-9458-8b36dd950a7e",
      "embeds": []
    },
    "81a03e88-a76c-4335-be92-01c433e692cf": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -200,
        "y": 1190
      },
      "z": 3,
      "parent": "5f563655-d27c-492d-9458-8b36dd950a7e",
      "embeds": []
    },
    "e13eddcb-d508-41ed-86ba-52721609f64d": {
      "size": {
        "width": 180,
        "height": 260
      },
      "position": {
        "x": 510,
        "y": 1030
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": []
    },
    "c88e3060-c887-4c7a-8b25-74dba8c01b1f": {
      "size": {
        "width": 290,
        "height": 110
      },
      "position": {
        "x": 90,
        "y": 770
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": []
    },
    "c1a742ea-be11-4f90-9edb-00340f314443": {
      "source": {
        "id": "5f563655-d27c-492d-9458-8b36dd950a7e"
      },
      "target": {
        "id": "c88e3060-c887-4c7a-8b25-74dba8c01b1f"
      },
      "z": 2
    },
    "6459bdbb-c25c-4bd7-9ea6-e78fc7da90d0": {
      "source": {
        "id": "e13eddcb-d508-41ed-86ba-52721609f64d"
      },
      "target": {
        "id": "c88e3060-c887-4c7a-8b25-74dba8c01b1f"
      },
      "z": 2
    },
    "9d9f7c73-1580-4f8e-8463-6e27fb43e766": {
      "size": {
        "width": 300,
        "height": 380
      },
      "position": {
        "x": -310,
        "y": 570
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": [
        "6a00b44b-c40f-4464-aad5-1d54e3772398",
        "f22aa599-4f7e-4715-a098-41e10c081523",
        "c8ec5a7a-62cb-4406-9f2d-0b5a564fd966",
        "8b8f955d-4b13-43ad-bd92-88a983aba05e",
        "fc400079-4e29-449d-9261-802c07e90664"
      ]
    },
    "6a00b44b-c40f-4464-aad5-1d54e3772398": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -250,
        "y": 830
      },
      "z": 3,
      "parent": "9d9f7c73-1580-4f8e-8463-6e27fb43e766",
      "embeds": []
    },
    "f22aa599-4f7e-4715-a098-41e10c081523": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -140,
        "y": 790
      },
      "z": 3,
      "parent": "9d9f7c73-1580-4f8e-8463-6e27fb43e766",
      "embeds": []
    },
    "c8ec5a7a-62cb-4406-9f2d-0b5a564fd966": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -250,
        "y": 610
      },
      "z": 3,
      "parent": "9d9f7c73-1580-4f8e-8463-6e27fb43e766",
      "embeds": []
    },
    "8b8f955d-4b13-43ad-bd92-88a983aba05e": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -250,
        "y": 720
      },
      "z": 3,
      "parent": "9d9f7c73-1580-4f8e-8463-6e27fb43e766",
      "embeds": []
    },
    "fc400079-4e29-449d-9261-802c07e90664": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": -140,
        "y": 690
      },
      "z": 3,
      "parent": "9d9f7c73-1580-4f8e-8463-6e27fb43e766",
      "embeds": []
    },
    "35457506-b697-467e-925b-61a48305e0da": {
      "size": {
        "width": 180,
        "height": 330
      },
      "position": {
        "x": 510,
        "y": 580
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": [
        "3b3697f1-2874-4073-847a-c2814e9c4336"
      ]
    },
    "92a83719-48bf-4e04-a3cd-0f8b99305053": {
      "source": {
        "id": "7354dd3a-e180-418e-8cd2-a9b2ad2a4666"
      },
      "target": {
        "id": "36f558fe-7a2b-4a24-9edb-3b9a10d33217"
      },
      "z": 1
    },
    "3b3697f1-2874-4073-847a-c2814e9c4336": {
      "size": {
        "width": 60,
        "height": 60
      },
      "position": {
        "x": 560,
        "y": 720
      },
      "z": 3,
      "parent": "35457506-b697-467e-925b-61a48305e0da",
      "embeds": [],
      "references": [
        "7354dd3a-e180-418e-8cd2-a9b2ad2a4666"
      ],
      "dependson": [
        "92a83719-48bf-4e04-a3cd-0f8b99305053"
      ]
    },
    "d17f3169-9687-4907-ac33-04ce215fded7": {
      "size": {
        "width": 290,
        "height": 120
      },
      "position": {
        "x": 90,
        "y": 630
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": []
    },
    "de86ddc8-8415-41a5-a905-b1bda5ba3fed": {
      "source": {
        "id": "9d9f7c73-1580-4f8e-8463-6e27fb43e766"
      },
      "target": {
        "id": "d17f3169-9687-4907-ac33-04ce215fded7"
      },
      "z": 2
    },
    "6033dd6a-6b5b-4b0a-9e41-a59a779c5a61": {
      "source": {
        "id": "35457506-b697-467e-925b-61a48305e0da"
      },
      "target": {
        "id": "d17f3169-9687-4907-ac33-04ce215fded7"
      },
      "z": 2
    },
    "21cff9ba-e2c6-4d76-80d2-7f10d6b618b0": {
      "size": {
        "width": 290,
        "height": 100
      },
      "position": {
        "x": 90,
        "y": 1040
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": []
    },
    "f950a56e-a1ed-4e65-97df-1b8869da8b59": {
      "size": {
        "width": 290,
        "height": 100
      },
      "position": {
        "x": 90,
        "y": 1170
      },
      "z": 2,
      "parent": "36f558fe-7a2b-4a24-9edb-3b9a10d33217",
      "embeds": []
    },
    "ff1a00b2-0c71-4500-a421-08255279d2f0": {
      "source": {
        "id": "35457506-b697-467e-925b-61a48305e0da"
      },
      "target": {
        "id": "21cff9ba-e2c6-4d76-80d2-7f10d6b618b0"
      },
      "z": 2
    },
    "353e5d2f-7968-4636-a916-b4d1305ad23f": {
      "source": {
        "id": "9d9f7c73-1580-4f8e-8463-6e27fb43e766"
      },
      "target": {
        "id": "21cff9ba-e2c6-4d76-80d2-7f10d6b618b0"
      },
      "z": 2
    },
    "6237f72f-664d-4c7d-bbb9-52980fb4f620": {
      "source": {
        "id": "e13eddcb-d508-41ed-86ba-52721609f64d"
      },
      "target": {
        "id": "f950a56e-a1ed-4e65-97df-1b8869da8b59"
      },
      "z": 2
    },
    "84446bb6-0790-4a7b-868e-776127af1b1a": {
      "source": {
        "id": "5f563655-d27c-492d-9458-8b36dd950a7e"
      },
      "target": {
        "id": "f950a56e-a1ed-4e65-97df-1b8869da8b59"
      },
      "z": 2
    }
  }
}

}