{"id":24535,"date":"2023-09-26T09:52:51","date_gmt":"2023-09-26T00:52:51","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=24535"},"modified":"2023-09-26T09:52:51","modified_gmt":"2023-09-26T00:52:51","slug":"%e5%a4%a7%e9%98%aa%e3%83%aa%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3-api-gateway%e3%81%ab%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%83%bbapi%e3%83%9e","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/%e5%a4%a7%e9%98%aa%e3%83%aa%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3-api-gateway%e3%81%ab%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%83%bbapi%e3%83%9e\/","title":{"rendered":"\u5927\u962a\u30ea\u30fc\u30b8\u30e7\u30f3 API Gateway \u306b\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u30fbAPI\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u8a2d\u5b9a\u3059\u308b"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>\u5927\u962a\u30ea\u30fc\u30b8\u30e7\u30f3\u306eAPI Gateway\u306b\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u30fbAPI\u30de\u30c3\u30d4\u30f3\u30b0\u3092AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u5b9f\u65bd\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f\u305f\u3081\u3001\u305d\u306e\u8abf\u67fb\u7d50\u679c\u306b\u3064\u3044\u3066\u30d6\u30ed\u30b0\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001AWS CLI\u3092\u4f7f\u3044\u300ccreate-base-path-mapping\u300d\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\uff01<br \/>\n\u53c2\u8003\uff1a<a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/apigateway\/create-base-path-mapping.html\">create-base-path-mapping<\/a><\/p>\n<h2>API\u30de\u30c3\u30d4\u30f3\u30b0\u3068\u306f\uff1f<\/h2>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/apigateway\/latest\/developerguide\/rest-api-mappings.html\">REST API \u306e API \u30de\u30c3\u30d4\u30f3\u30b0<\/a><br \/>\nAWS API Gateway\u306e\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u306f\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001API\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u7c21\u5358\u306b\u8b58\u5225\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>API\u30de\u30c3\u30d4\u30f3\u30b0\u6a5f\u80fd\u306f\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u7570\u306a\u308b\u30d1\u30b9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u8907\u6570\u306eAPI\u3092\u540c\u3058\u30c9\u30e1\u30a4\u30f3\u540d\u3067\u516c\u958b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u72ec\u81ea\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u300chttps:\/\/api-gateway-endpoint.amazonaws.com\/v1\u300d\u3068\u3044\u3046\u5834\u5408\u3001\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u300chttps:\/\/api.example.com\/v1\u300d\u3068\u3044\u3046\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u7570\u306a\u308b\u30d1\u30b9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u300chttps:\/\/api-gateway-endpoint.amazonaws.com\/v1\/my-api\u300d\u3068\u3044\u3046\u5834\u5408\u3001API\u30de\u30c3\u30d4\u30f3\u30b0\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u300chttps:\/\/api.example.com\/my-api\u300d\u3068\u3044\u3046\u30d1\u30b9\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u203b\u30b9\u30c6\u30fc\u30b8\u540d\u3092\u7701\u7565\u3057\u305f\u308a\u3001\u5225\u30d1\u30b9\u3068\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>API\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u7c21\u5358\u306b\u8b58\u5225\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001<br \/>\n\u8907\u6570\u306eAPI\u3092\u540c\u3058\u30c9\u30e1\u30a4\u30f3\u540d\u3067\u516c\u958b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0<\/h2>\n<p>\u672c\u624b\u9806\u306e\u74b0\u5883\u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30ea\u30fc\u30b8\u30e7\u30f3\uff1a \u300c\u5927\u962a\u300d<\/li>\n<li>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u30bf\u30a4\u30d7:\u3000\u300cREST API (REGIONAL)\u300d<\/li>\n<li>ACM \u3067\u8a3c\u660e\u66f8\u3092\u6e96\u5099 \u203b\u5927\u962a\u30ea\u30fc\u30b8\u30e7\u30f3\u3067\u53d6\u5f97<\/li>\n<li>\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u767b\u9332\u7528\u306e Route53 \u3092\u6e96\u5099<\/li>\n<li>AWS CLI\u5b9f\u884c\u306bCloudShell\u3092\u5229\u7528<\/li>\n<\/ul>\n<h2>\u3084\u3063\u3066\u307f\u308b<\/h2>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u3001\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u306e\u767a\u884c\u304b\u3089API\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u8a2d\u5b9a\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u306e\u4f5c\u6210<\/h3>\n<p>\u307e\u305a\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u8a2d\u5b9a\u6642\u306b\u30c9\u30e1\u30a4\u30f3\u306b\u9069\u7528\u3059\u308b<strong>ACM\u8a3c\u660e\u66f8\u306f\u5fc5\u9808<\/strong>\u306e\u305f\u3081\u3001\u4e8b\u524d\u306b\u6e96\u5099\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/589507195ff981a488a2325686012c31-1024x596.png\" alt=\"\" width=\"728\" height=\"424\" class=\"aligncenter size-large wp-image-24544\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/589507195ff981a488a2325686012c31-1024x596.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/589507195ff981a488a2325686012c31-300x175.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/589507195ff981a488a2325686012c31-768x447.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/589507195ff981a488a2325686012c31-728x424.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/589507195ff981a488a2325686012c31.png 1254w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/>\n<p>\u4f5c\u6210\u3067\u304d\u308b\u3068\u4e0b\u8a18\u306e\u753b\u9762\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u306e\u67a0\u5185\u306b\u3042\u308b\u7b87\u6240\u304b\u3089\u3001API\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u3068\u30d1\u30b9\u3067\u306eAPIGW\u306e\u7d10\u3065\u3051\u3092\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4f3161c5e16725a80c7095cbcba744eb.png\" alt=\"\" width=\"856\" height=\"836\" class=\"aligncenter size-full wp-image-24545\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4f3161c5e16725a80c7095cbcba744eb.png 856w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4f3161c5e16725a80c7095cbcba744eb-300x293.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4f3161c5e16725a80c7095cbcba744eb-768x750.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4f3161c5e16725a80c7095cbcba744eb-728x711.png 728w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/>\n<h3>API\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u8a2d\u5b9a<\/h3>\n<p>\u5b9f\u969b\u306bAPI\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u8a2d\u5b9a\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u4f5c\u6210\u6e08\u307f\u306eAPI Gateway\u306e\u300c\u30b9\u30c6\u30fc\u30b8:v1\u300d\u3092\u300chttps:\/\/\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\/v1\u300d\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4fdaf72381316fd2638239798225a4c2.png\" alt=\"\" width=\"1004\" height=\"296\" class=\"aligncenter size-full wp-image-24546\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4fdaf72381316fd2638239798225a4c2.png 1004w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4fdaf72381316fd2638239798225a4c2-300x88.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4fdaf72381316fd2638239798225a4c2-768x226.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/4fdaf72381316fd2638239798225a4c2-728x215.png 728w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/>\n<p>\u3053\u3061\u3089\u306e\u8a2d\u5b9a\u306f<\/p>\n<blockquote><p>\n  https:\/\/\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\/v1\n<\/p><\/blockquote>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u6307\u5b9a\u3057\u305fAPI Gateway\u306e\u300c\u30b9\u30c6\u30fc\u30b8:v1\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3092\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u72b6\u614b\u3067\u4fdd\u5b58\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u8a2d\u5b9a\u304c\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3001\u3001\u3001<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/f242114795de8a8ffabfa4b7c7b6b31b-1-1024x400.png\" alt=\"\" width=\"728\" height=\"284\" class=\"aligncenter size-large wp-image-24548\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/f242114795de8a8ffabfa4b7c7b6b31b-1-1024x400.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/f242114795de8a8ffabfa4b7c7b6b31b-1-300x117.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/f242114795de8a8ffabfa4b7c7b6b31b-1-768x300.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/f242114795de8a8ffabfa4b7c7b6b31b-1-728x285.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/f242114795de8a8ffabfa4b7c7b6b31b-1.png 1026w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/>\n<blockquote><p>\n  \u30a8\u30e9\u30fc\u5185\u5bb9\uff1a<br \/>\n  Mixing of non-WebSocket APIs is not yet supported in this AWS region. You may use the API Gateway V1 API to associate REST APIs to your domain name or you may use the API Gateway V2 API to associate WebSocket APIs.\n<\/p><\/blockquote>\n<h3>API\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\u30a8\u30e9\u30fc\u306e\u56de\u907f\u7b56<\/h3>\n<p>\u30a8\u30e9\u30fc\u5185\u5bb9\u306b\u3042\u308b\u901a\u308a\u3001AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u8a2d\u5b9a\u306f\u3067\u304d\u306a\u3044\u305f\u3081\u3001<br \/>\nRESTAPI\u306e\u5834\u5408\u306f\u3001API Gateway V1<br \/>\nWebSocket\u306e\u5834\u5408\u306f\u3001API Gateway V2<br \/>\n\u304b\u3089API\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\u3092\u5b9f\u65bd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<br \/>\n\u4eca\u56de\u306fREST API\u306b\u8a2d\u5b9a\u3057\u305f\u3044\u306e\u3067\u3001<a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/apigateway\/create-base-path-mapping.html\">create-base-path-mapping<\/a>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u3001CLI\u3092CloudShell\u304b\u3089\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\naws apigateway create-base-path-mapping \\\n  --domain-name {\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u540d} \\\n  --base-path {\u30d1\u30b9} \\\n  --rest-api-id {APIGatewayID} \\\n  --stage {\u30b9\u30c6\u30fc\u30b8} \\\n  --region {\u30ea\u30fc\u30b8\u30e7\u30f3}\n<\/pre>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/bfc25ddacbea032acbe2a4faf3be6fab.png\" alt=\"\" width=\"763\" height=\"510\" class=\"aligncenter size-full wp-image-24552\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/bfc25ddacbea032acbe2a4faf3be6fab.png 763w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/bfc25ddacbea032acbe2a4faf3be6fab-300x201.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/bfc25ddacbea032acbe2a4faf3be6fab-728x487.png 728w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/>\n<p>CLI\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u7121\u4e8bAPI\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u8a2d\u5b9a\u3092\u6295\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\uff01\uff01<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/cf845986dd956d78d8ef1a928f9d00fc.png\" alt=\"\" width=\"484\" height=\"171\" class=\"aligncenter size-full wp-image-24553\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/cf845986dd956d78d8ef1a928f9d00fc.png 484w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/cf845986dd956d78d8ef1a928f9d00fc-300x106.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/>\n<p>\u3042\u3068\u306f\u3001\u3053\u306e\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u3092Route53\u3067\u540d\u524d\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/96fbf4233a21218e18e4b9500c843477.png\" alt=\"\" width=\"892\" height=\"597\" class=\"aligncenter size-full wp-image-24554\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/96fbf4233a21218e18e4b9500c843477.png 892w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/96fbf4233a21218e18e4b9500c843477-300x201.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/96fbf4233a21218e18e4b9500c843477-768x514.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/96fbf4233a21218e18e4b9500c843477-728x487.png 728w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/>\n<h3>\u53c2\u8003\uff1aWebsocket\u306e\u5834\u5408\u306e\u30b3\u30de\u30f3\u30c9<\/h3>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/reference\/apigatewayv2\/create-api-mapping.html\">create-api-mapping<\/a><br \/>\n\u53c2\u8003\u307e\u3067\u306b\u3001WebSocket\u306e\u5834\u5408\u306eCLI\u306f\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\naws apigatewayv2 create-api-mapping \\\n --api-id {APIGatewayID} \\\n --api-mapping-key {\u30d1\u30b9} \\\n --domain-name {\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u540d} \\\n --stage {\u30b9\u30c6\u30fc\u30b8} \\\n --region {\u30ea\u30fc\u30b8\u30e7\u30f3}\n<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u5927\u962a\u30ea\u30fc\u30b8\u30e7\u30f3 API Gateway REST API(REGIONAL)\u306b\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u30fbAPI\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br \/>\n2023\/09\u6708\u73fe\u5728AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u30fbapigatewayv2\u304b\u3089\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001apigateway create-base-path-mapping\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066API\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u5927\u962a\u30ea\u30fc\u30b8\u30e7\u30f3\u306eAPI Gateway\u306b\u30ab\u30b9\u30bf\u30e0\u30c9\u30e1\u30a4\u30f3\u30fbAPI\u30de\u30c3\u30d4\u30f3\u30b0\u3092AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u5b9f\u65bd\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3068\u306a\u3063\u305f\u305f\u3081\u3001\u305d\u306e\u8abf\u67fb\u7d50\u679c\u306b\u3064\u3044\u3066\u30d6\u30ed\u30b0\u306b\u3057\u307e\u3057\u305f\u3002 \u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001AWS CLI\u3092\u4f7f\u3044\u300ccreate&#8230;<\/p>\n","protected":false},"author":53,"featured_media":24582,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=24535","footnotes":""},"categories":[20,276],"tags":[392,102],"class_list":{"0":"post-24535","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-serverless","9":"tag-amazon-api-gateway","10":"tag-aws","11":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=24535"}],"version-history":[{"count":38,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24535\/revisions"}],"predecessor-version":[{"id":24584,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24535\/revisions\/24584"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/24582"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=24535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=24535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=24535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}