{"id":1251,"date":"2018-05-21T08:00:55","date_gmt":"2018-05-20T23:00:55","guid":{"rendered":"https:\/\/www.itc109.com\/knowledge\/?p=1251"},"modified":"2021-09-30T08:58:40","modified_gmt":"2021-09-29T23:58:40","slug":"get-aws-routetable","status":"publish","type":"post","link":"https:\/\/www.itc109.com\/knowledge\/aws\/get-aws-routetable","title":{"rendered":"AWS &#8211; \u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u60c5\u5831\u306e\u53d6\u5f97"},"content":{"rendered":"<h4><strong>\u6982\u8981<\/strong><\/h4>\n<p>\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p><strong><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonVPC\/latest\/UserGuide\/VPC_Route_Tables.html\" target=\"_blank\" rel=\"noopener\">\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb<\/a><\/strong><br \/>\n\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u7d4c\u8def\u3092\u5224\u65ad\u3059\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u308b\u3001\u30eb\u30fc\u30c8\u3068\u547c\u3070\u308c\u308b\u4e00\u9023\u306e\u30eb\u30fc\u30eb\u304c\u542b\u307e\u308c\u307e\u3059\u3002 VPC \u306e\u5404\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u95a2\u9023\u4ed8\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30d6\u30cd\u30c3\u30c8\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u3088\u3063\u3066\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3055\u308c\u307e\u3059\u30021 \u3064\u306e\u30b5\u30d6\u30cd\u30c3\u30c8\u306f\u540c\u6642\u306b 1 \u3064\u306e\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u3057\u304b\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u7570\u306a\u308b\u8907\u6570\u306e\u30b5\u30d6\u30cd\u30c3\u30c8\u3092 1 \u3064\u306e\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h4><strong>\u624b\u9806<\/strong><\/h4>\n<p>\u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>aws ec2 describe-route-tables<\/code><\/pre>\n<\/div>\n<p><strong>TEXT<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>ROUTETABLES     rtb-9d9c27f*    vpc-9e7f74f*\r\nASSOCIATIONS    True    rtbassoc-15b54d7*       rtb-9d9c27f*\r\nROUTES  172.31.0.0\/16   local   CreateRouteTable        active\r\nROUTES  0.0.0.0\/0       igw-8a75d1ee    CreateRoute     active\r\nROUTETABLES     rtb-5b441f3*    vpc-8db025e*\r\nASSOCIATIONS    False   rtbassoc-e49da98*       rtb-5b441f3*    subnet-da2db88*\r\nASSOCIATIONS    False   rtbassoc-803623e*       rtb-5b441f3*    subnet-04c4084*\r\nROUTES  10.0.0.0\/16     local   CreateRouteTable        active\r\nROUTES  0.0.0.0\/0       igw-8b7874ee    CreateRoute     active\r\nTAGS    Name    rt-ext-project-01\r\nROUTETABLES     rtb-f0471c9*    vpc-8db025e*\r\nASSOCIATIONS    False   rtbassoc-cf93a7a*       rtb-f0471c9*    subnet-0fa5fd4*\r\nASSOCIATIONS    True    rtbassoc-dd75deb*       rtb-f0471c9*\r\nASSOCIATIONS    False   rtbassoc-f192a69*       rtb-f0471c9*    subnet-112cb94*\r\nROUTES  10.0.0.0\/16     local   CreateRouteTable        active\r\nTAGS    Name    rt-int-project-01\r\n<\/code><\/pre>\n<\/div>\n<p><strong>TABLE<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>-----------------------------------------------------------------------------\r\n|                            DescribeRouteTables                            |\r\n+---------------------------------------------------------------------------+\r\n||                               RouteTables                               ||\r\n|+-----------------------------------+-------------------------------------+|\r\n||           RouteTableId            |                VpcId                ||\r\n|+-----------------------------------+-------------------------------------+|\r\n||  rtb-9d9c27f*                     |  vpc-9e7f74f*                       ||\r\n|+-----------------------------------+-------------------------------------+|\r\n|||                             Associations                              |||\r\n||+---------+--------------------------------------+----------------------+||\r\n|||  Main   |       RouteTableAssociationId        |    RouteTableId      |||\r\n||+---------+--------------------------------------+----------------------+||\r\n|||  True   |  rtbassoc-15b54d7*                   |  rtb-9d9c27f*        |||\r\n||+---------+--------------------------------------+----------------------+||\r\n|||                                Routes                                 |||\r\n||+-----------------------+----------------+--------------------+---------+||\r\n||| DestinationCidrBlock  |   GatewayId    |      Origin        |  State  |||\r\n||+-----------------------+----------------+--------------------+---------+||\r\n|||  172.31.0.0\/16        |  local         |  CreateRouteTable  |  active |||\r\n|||  0.0.0.0\/0            |  igw-8a75d1ee  |  CreateRoute       |  active |||\r\n||+-----------------------+----------------+--------------------+---------+||\r\n||                               RouteTables                               ||\r\n|+-----------------------------------+-------------------------------------+|\r\n||           RouteTableId            |                VpcId                ||\r\n|+-----------------------------------+-------------------------------------+|\r\n||  rtb-5b441f3*                     |  vpc-8db025e*                       ||\r\n|+-----------------------------------+-------------------------------------+|\r\n|||                             Associations                              |||\r\n||+-------+---------------------------+---------------+-------------------+||\r\n||| Main  |  RouteTableAssociationId  | RouteTableId  |     SubnetId      |||\r\n||+-------+---------------------------+---------------+-------------------+||\r\n|||  False|  rtbassoc-e49da98*        |  rtb-5b441f3* |  subnet-da2db88*  |||\r\n|||  False|  rtbassoc-803623e*        |  rtb-5b441f3* |  subnet-04c4084*  |||\r\n||+-------+---------------------------+---------------+-------------------+||\r\n|||                                Routes                                 |||\r\n||+-----------------------+----------------+--------------------+---------+||\r\n||| DestinationCidrBlock  |   GatewayId    |      Origin        |  State  |||\r\n||+-----------------------+----------------+--------------------+---------+||\r\n|||  10.0.0.0\/16          |  local         |  CreateRouteTable  |  active |||\r\n|||  0.0.0.0\/0            |  igw-8b7874ee  |  CreateRoute       |  active |||\r\n||+-----------------------+----------------+--------------------+---------+||\r\n|||                                 Tags                                  |||\r\n||+------------------+----------------------------------------------------+||\r\n|||        Key       |                       Value                        |||\r\n||+------------------+----------------------------------------------------+||\r\n|||  Name            |  rt-ext-project-01                                 |||\r\n||+------------------+----------------------------------------------------+||\r\n||                               RouteTables                               ||\r\n|+-----------------------------------+-------------------------------------+|\r\n||           RouteTableId            |                VpcId                ||\r\n|+-----------------------------------+-------------------------------------+|\r\n||  rtb-f0471c9*                     |  vpc-8db025e*                       ||\r\n|+-----------------------------------+-------------------------------------+|\r\n|||                             Associations                              |||\r\n||+-------+---------------------------+---------------+-------------------+||\r\n||| Main  |  RouteTableAssociationId  | RouteTableId  |     SubnetId      |||\r\n||+-------+---------------------------+---------------+-------------------+||\r\n|||  False|  rtbassoc-cf93a7a*        |  rtb-f0471c9* |  subnet-0fa5fd4*  |||\r\n|||  True |  rtbassoc-dd75deb*        |  rtb-f0471c9* |                   |||\r\n|||  False|  rtbassoc-f192a69*        |  rtb-f0471c9* |  subnet-112cb94*  |||\r\n||+-------+---------------------------+---------------+-------------------+||\r\n|||                                Routes                                 |||\r\n||+------------------------+-------------+---------------------+----------+||\r\n|||  DestinationCidrBlock  |  GatewayId  |       Origin        |  State   |||\r\n||+------------------------+-------------+---------------------+----------+||\r\n|||  10.0.0.0\/16           |  local      |  CreateRouteTable   |  active  |||\r\n||+------------------------+-------------+---------------------+----------+||\r\n|||                                 Tags                                  |||\r\n||+------------------+----------------------------------------------------+||\r\n|||        Key       |                       Value                        |||\r\n||+------------------+----------------------------------------------------+||\r\n|||  Name            |  rt-int-project-01                                 |||\r\n||+------------------+----------------------------------------------------+||\r\n<\/code><\/pre>\n<\/div>\n<p><strong>TEXT<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>{\r\n    \"RouteTables\": [\r\n        {\r\n            \"Associations\": [\r\n                {\r\n                    \"RouteTableAssociationId\": \"rtbassoc-15b54d7*\",\r\n                    \"Main\": true,\r\n                    \"RouteTableId\": \"rtb-9d9c27f*\"\r\n                }\r\n            ],\r\n            \"RouteTableId\": \"rtb-9d9c27f*\",\r\n            \"VpcId\": \"vpc-9e7f74f*\",\r\n            \"PropagatingVgws\": [],\r\n            \"Tags\": [],\r\n            \"Routes\": [\r\n                {\r\n                    \"GatewayId\": \"local\",\r\n                    \"DestinationCidrBlock\": \"172.31.0.0\/16\",\r\n                    \"State\": \"active\",\r\n                    \"Origin\": \"CreateRouteTable\"\r\n                },\r\n                {\r\n                    \"GatewayId\": \"igw-8a75d1ee\",\r\n                    \"DestinationCidrBlock\": \"0.0.0.0\/0\",\r\n                    \"State\": \"active\",\r\n                    \"Origin\": \"CreateRoute\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"Associations\": [\r\n                {\r\n                    \"SubnetId\": \"subnet-da2db88*\",\r\n                    \"RouteTableAssociationId\": \"rtbassoc-e49da98*\",\r\n                    \"Main\": false,\r\n                    \"RouteTableId\": \"rtb-5b441f3*\"\r\n                },\r\n                {\r\n                    \"SubnetId\": \"subnet-04c4084*\",\r\n                    \"RouteTableAssociationId\": \"rtbassoc-803623e*\",\r\n                    \"Main\": false,\r\n                    \"RouteTableId\": \"rtb-5b441f3*\"\r\n                }\r\n            ],\r\n            \"RouteTableId\": \"rtb-5b441f3*\",\r\n            \"VpcId\": \"vpc-8db025e*\",\r\n            \"PropagatingVgws\": [],\r\n            \"Tags\": [\r\n                {\r\n                    \"Value\": \"rt-ext-project-01\",\r\n                    \"Key\": \"Name\"\r\n                }\r\n            ],\r\n            \"Routes\": [\r\n                {\r\n                    \"GatewayId\": \"local\",\r\n                    \"DestinationCidrBlock\": \"10.0.0.0\/16\",\r\n                    \"State\": \"active\",\r\n                    \"Origin\": \"CreateRouteTable\"\r\n                },\r\n                {\r\n                    \"GatewayId\": \"igw-8b7874ee\",\r\n                    \"DestinationCidrBlock\": \"0.0.0.0\/0\",\r\n                    \"State\": \"active\",\r\n                    \"Origin\": \"CreateRoute\"\r\n                }\r\n            ]\r\n        },\r\n        {\r\n            \"Associations\": [\r\n                {\r\n                    \"SubnetId\": \"subnet-0fa5fd4*\",\r\n                    \"RouteTableAssociationId\": \"rtbassoc-cf93a7a*\",\r\n                    \"Main\": false,\r\n                    \"RouteTableId\": \"rtb-f0471c9*\"\r\n                },\r\n                {\r\n                    \"RouteTableAssociationId\": \"rtbassoc-dd75deb*\",\r\n                    \"Main\": true,\r\n                    \"RouteTableId\": \"rtb-f0471c9*\"\r\n                },\r\n                {\r\n                    \"SubnetId\": \"subnet-112cb94*\",\r\n                    \"RouteTableAssociationId\": \"rtbassoc-f192a69*\",\r\n                    \"Main\": false,\r\n                    \"RouteTableId\": \"rtb-f0471c9*\"\r\n                }\r\n            ],\r\n            \"RouteTableId\": \"rtb-f0471c9*\",\r\n            \"VpcId\": \"vpc-8db025e*\",\r\n            \"PropagatingVgws\": [],\r\n            \"Tags\": [\r\n                {\r\n                    \"Value\": \"rt-int-project-01\",\r\n                    \"Key\": \"Name\"\r\n                }\r\n            ],\r\n            \"Routes\": [\r\n                {\r\n                    \"GatewayId\": \"local\",\r\n                    \"DestinationCidrBlock\": \"10.0.0.0\/16\",\r\n                    \"State\": \"active\",\r\n                    \"Origin\": \"CreateRouteTable\"\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}\r\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb \u30eb\u30fc\u30c8\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u7d4c\u8def\u3092\u5224\u65ad\u3059\u308b\u969b\u306b\u4f7f\u7528\u3055\u308c\u308b\u3001\u30eb\u30fc\u30c8\u3068\u547c\u3070\u308c\u308b\u4e00\u9023\u306e\u30eb\u30fc\u30eb\u304c\u542b\u307e\u308c\u307e\u3059\u3002 VPC \u306e\u5404\u30b5\u30d6\u30cd&#8230;<\/p>\n","protected":false},"author":3,"featured_media":23,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[30,88,82],"class_list":["post-1251","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws-cli","tag-route-table","tag-82"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.itc109.com\/knowledge\/wp-content\/uploads\/sites\/2\/logo\/logo-aws.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pacZwp-kb","_links":{"self":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/comments?post=1251"}],"version-history":[{"count":10,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1251\/revisions"}],"predecessor-version":[{"id":2571,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/posts\/1251\/revisions\/2571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media\/23"}],"wp:attachment":[{"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/media?parent=1251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/categories?post=1251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itc109.com\/knowledge\/wp-json\/wp\/v2\/tags?post=1251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}