{"id":21767,"date":"2022-03-24T17:23:23","date_gmt":"2022-03-24T08:23:23","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=21767"},"modified":"2022-03-24T17:25:55","modified_gmt":"2022-03-24T08:25:55","slug":"vs-code%e3%81%a7ecs-exec%e3%81%8c%e5%ae%9f%e8%a1%8c%e5%87%ba%e6%9d%a5%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%aa%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/vs-code%e3%81%a7ecs-exec%e3%81%8c%e5%ae%9f%e8%a1%8c%e5%87%ba%e6%9d%a5%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e3%81%aa%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f\/","title":{"rendered":"VS Code\u3067ECS Exec\u304c\u5b9f\u884c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f"},"content":{"rendered":"<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>\u4ee5\u524d\u306e<a href=\"https:\/\/www.skyarch.net\/blog\/?p=20843\">\u308f\u305f\u304f\u3057\u306e\u30d6\u30ed\u30b0<\/a>\u306b\u3066 ECS Exec\u306e\u7d20\u6674\u3089\u3057\u3055\u3092\u304a\u4f1d\u3048\u3057\u307e\u3057\u305f\u304c<br \/>\n\u3053\u306e\u5ea6<a href=\"https:\/\/aws.amazon.com\/jp\/about-aws\/whats-new\/2021\/12\/aws-toolkit-vs-code-amazon-ecs-exec\/\">VS Code\u306bECS Exec\u306e\u30b5\u30dd\u30fc\u30c8<\/a>\u3092\u8aad\u3093\u3067\u7c21\u5358\u306bECS Exec\u304c\u51fa\u6765\u308b\u3068\u77e5\u308a\u30c8\u30e9\u30a4\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#overview\">Amazon Toolkit for VS Code\u306b\u3064\u3044\u3066<\/a><\/li>\n<li><a href=\"#houhou\">\u5229\u7528\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"#try\">\u63a5\u7d9a\u3057\u3066\u307f\u305f<\/a><\/li>\n<li><a href=\"#kansou\">\u611f\u60f3<\/a><\/li>\n<li><a href=\"#yodan\">\u4f59\u8ac7<\/a><\/li>\n<li><a href=\"#sankou\">\u53c2\u8003\u8a18\u4e8b<\/a><\/li>\n<\/ul>\n<h2 id=\"overview\">Amazon Toolkit for VS Code\u306b\u3064\u3044\u3066<\/h2>\n<p>AWS Toolkit\u306f\u3001 AWS\u3068\u306e\u5bfe\u8a71\u3092\u53ef\u80fd\u306b\u3059\u308bVisual Studio Code\u306e\u62e1\u5f35\u6a5f\u80fd\u3067\u3059\u3002 (\u4ee5\u4e0b VS Code)<br \/>\n\u672c\u30d6\u30ed\u30b0\u3067\u7d39\u4ecb\u3059\u308bECS\u30b5\u30fc\u30d3\u30b9\u4ee5\u5916\u306b\u3082\u69d8\u3005\u306a\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u8a73\u7d30\u306f<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=AmazonWebServices.aws-toolkit-vscode\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 id=\"houhou\">\u5229\u7528\u65b9\u6cd5<\/h2>\n<p><strong>VS Code<\/strong>\u53ca\u3073<strong>ECS<\/strong>\u3067\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u6761\u4ef6\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>1. VS Code<\/h3>\n<ul>\n<li><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=AmazonWebServices.aws-toolkit-vscode\">AWS Toolkit<\/a>\u30d7\u30e9\u30a4\u30b0\u30a4\u30f3\uff08v1.34.0\u4ee5\u4e0a\uff09\u3092\u6709\u52b9\u5316<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/93b421856869a65f16ed1dc7815e3f0a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/93b421856869a65f16ed1dc7815e3f0a.png\" alt=\"\" width=\"665\" height=\"174\" class=\"alignnone size-full wp-image-21769\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/93b421856869a65f16ed1dc7815e3f0a.png 665w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/93b421856869a65f16ed1dc7815e3f0a-300x78.png 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/a><br \/>\n\u7b46\u8005\u306eAWS Toolkit\u306f<code>v1.36.0<\/code>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c<br \/>\nECS Exec \u306e\u30b5\u30dd\u30fc\u30c8\u306f<code>v1.34.0<\/code>\u3067\u8ffd\u52a0\u3068\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/df53441bf50285db8fdf80e41ad12d75.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/df53441bf50285db8fdf80e41ad12d75.png\" alt=\"\" width=\"821\" height=\"186\" class=\"alignnone size-full wp-image-21771\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/df53441bf50285db8fdf80e41ad12d75.png 821w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/df53441bf50285db8fdf80e41ad12d75-300x68.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/df53441bf50285db8fdf80e41ad12d75-768x174.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/df53441bf50285db8fdf80e41ad12d75-728x165.png 728w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/a><\/p>\n<\/li>\n<li>\n<p>Credentials Profile\u3092\u9078\u629e<br \/>\n\u300cAWS: Choose AWS Profile...\u300d\u3088\u308a\u63a5\u7d9a\u3057\u305f\u3044AWS\u30a2\u30ab\u30a6\u30f3\u30c8\/\u30e6\u30fc\u30b6\u3092\u9078\u629e\u3057\u307e\u3057\u3087\u3046<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/19d6adde1bbaad7d2b909adbcf6437c5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/19d6adde1bbaad7d2b909adbcf6437c5.png\" alt=\"\" width=\"604\" height=\"65\" class=\"alignnone size-full wp-image-21772\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/19d6adde1bbaad7d2b909adbcf6437c5.png 604w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/19d6adde1bbaad7d2b909adbcf6437c5-300x32.png 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<\/li>\n<\/ul>\n<h3>2. ECS<\/h3>\n<ul>\n<li>Fargate\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30d0\u30fc\u30b8\u30e7\u30f3\u304c1.4.0\u4ee5\u964d\u3067\u3042\u308b\u3053\u3068<\/li>\n<li>ECS\u30bf\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u4ee5\u4e0b\u306e\u30dd\u30ea\u30b7\u30fc\u304c\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/li>\n<\/ul>\n<pre>{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"ssmmessages:CreateControlChannel\",\n                \"ssmmessages:CreateDataChannel\",\n                \"ssmmessages:OpenControlChannel\",\n                \"ssmmessages:OpenDataChannel\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}<\/pre>\n<h2 id=\"try\">\u63a5\u7d9a\u3057\u3066\u307f\u305f<\/h2>\n<p>\u4e0b\u8a18\u306e2 STEP\u3067\u63a5\u7d9a\u304c\u51fa\u6765\u307e\u3059\u30022\u56de\u76ee\u4ee5\u964d\u306f\u2461\u306e\u307f\u3067\u63a5\u7d9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ol>\n<li>ECS Exec\u306e\u6709\u52b9\u5316\uff08\u521d\u56de\u306e\u307f\uff09<\/li>\n<li>\u5bfe\u8c61\u30b3\u30f3\u30c6\u30ca\u3092\u9078\u629e\u3057\u3001Run Command\u3092\u5b9f\u884c<\/li>\n<\/ol>\n<h3>1.ECS Exec\u306e\u6709\u52b9\u5316\uff08\u521d\u56de\u306e\u307f\uff09<\/h3>\n<p>ECS\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u3057\u3066ECS Exec\u306e\u6709\u52b9\u5316\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u73fe\u6642\u70b9\uff082022\/03\/24\uff09\u3067\u306fAWS \u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306e\u8a2d\u5b9a\u306f\u51fa\u6765\u306a\u3044\u305f\u3081\u3001\u3053\u308c\u307e\u3067\u306fCLI\u306b\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\uff08CLI\u3067\u306e\u8a2d\u5b9a\u624b\u9806\u306f<a href=\"https:\/\/www.skyarch.net\/blog\/?p=20843\">\u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u3067\u3059\u304c\u3053\u306e\u5ea6\u3001CLI\u306b\u52a0\u3048 VS Code\u3067\u3082\u7c21\u5358\u306b\u8a2d\u5b9a\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>AWS Toolkit -&gt; ECS -&gt; \u5bfe\u8c61\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u958b\u304d\u307e\u3059\u3002<br \/>\n\u5bfe\u8c61\u30b5\u30fc\u30d3\u30b9\u3067\u53f3\u30af\u30ea\u30c3\u30af -&gt; <strong>Enable Command Execution<\/strong>\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/bcdb236f8ff35c012050365f678111dc.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/bcdb236f8ff35c012050365f678111dc.png\" alt=\"\" width=\"572\" height=\"522\" class=\"alignnone size-full wp-image-21774\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/bcdb236f8ff35c012050365f678111dc.png 572w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/bcdb236f8ff35c012050365f678111dc-300x274.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/a><\/p>\n<p>\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306a\u6ce8\u610f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u307e\u3057\u305f\u3002<br \/>\n\u3069\u3046\u3084\u3089\u5185\u90e8\u3067\u30b5\u30fc\u30d3\u30b9\u306e\u505c\u6b62\u3084\u518d\u8d77\u52d5\u304c\u884c\u308f\u308c\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\uff08<em>\u305d\u306e\u305f\u3081\u672c\u756a\u74b0\u5883\u3067\u306eECS Exec\u6709\u52b9\u5316\u8a2d\u5b9a\u3092\u4f7f\u7528\u3057\u306a\u3044\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059<\/em>\uff09<\/p>\n<p>\u6ce8\u610f\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306e\u300cYes\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u7121\u4e8b\u306bECS Exec\u306e\u6709\u52b9\u5316\u304c\u884c\u308f\u308c\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-1.png\" alt=\"\" width=\"445\" height=\"167\" class=\"alignnone size-full wp-image-21775\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-1.png 445w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-1-300x113.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/a><\/p>\n<h3>2.\u5bfe\u8c61\u30b3\u30f3\u30c6\u30ca\u3092\u9078\u629e\u3057\u3001Run Command\u3092\u5b9f\u884c<\/h3>\n<p>ECS Exec\u306e\u6709\u52b9\u5316\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u3042\u3068\u306f\u5bfe\u8c61\u30b3\u30f3\u30c6\u30ca\u304b\u3089Run Command\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u5bfe\u8c61\u30b3\u30f3\u30c6\u30ca\u3092\u53f3\u30af\u30ea\u30c3\u30af -&gt; <strong>Run command in container<\/strong>\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-2.png\" alt=\"\" width=\"533\" height=\"113\" class=\"alignnone size-full wp-image-21776\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-2.png 533w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-2-300x64.png 300w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<p>\u3059\u308b\u3068VS Code\u306e\u4e0a\u6bb5\u306b\u3053\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u3067\u5bfe\u8c61\u3068\u306a\u308b\u30bf\u30b9\u30afID\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4.png\" alt=\"\" width=\"603\" height=\"106\" class=\"alignnone size-full wp-image-21777\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4.png 603w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-300x53.png 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/a><\/p>\n<p>\u6b21\u306b\u5b9f\u884c\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n\u4f8b\u3068\u3057\u3066\u9762\u767d\u307f\u306b\u6b20\u3051\u307e\u3059\u304c\u300chostname\u300d\u3092\u5165\u529b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/04ef26d400adc336f7f132da6fe678d3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/04ef26d400adc336f7f132da6fe678d3.png\" alt=\"\" width=\"603\" height=\"90\" class=\"alignnone size-full wp-image-21778\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/04ef26d400adc336f7f132da6fe678d3.png 603w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/04ef26d400adc336f7f132da6fe678d3-300x45.png 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/a><\/p>\n<p>\u305d\u3046\u3059\u308b\u3068VS Code\u306e\u51fa\u529b\u30bf\u30d6\uff08OUTPUT\uff09\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5b9f\u884c\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1.png\" alt=\"\" width=\"1339\" height=\"308\" class=\"alignnone size-full wp-image-21790\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1.png 1339w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1-300x69.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1-1024x236.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1-768x177.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/14ba5a6069a8fc871a1f48d9352784e4-1-728x167.png 728w\" sizes=\"auto, (max-width: 1339px) 100vw, 1339px\" \/><\/a><\/p>\n<p><strong>ps<\/strong>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u306f\u3053\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978.png\" alt=\"\" width=\"1332\" height=\"345\" class=\"alignnone size-full wp-image-21784\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978.png 1332w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978-300x78.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978-1024x265.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978-768x199.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/f9d026fc6d574586a382d320dc1b3978-728x189.png 728w\" sizes=\"auto, (max-width: 1332px) 100vw, 1332px\" \/><\/a><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u6570\u30af\u30ea\u30c3\u30af\u3067\u30b3\u30f3\u30c6\u30ca\u306b\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u304c\u51fa\u6765\u308b\u3053\u3068\u304c\u304a\u5206\u304b\u308a\u306b\u306a\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"kansou\">\u611f\u60f3<\/h2>\n<h3>\u30e1\u30ea\u30c3\u30c8<\/h3>\n<p>\u6570\u30af\u30ea\u30c3\u30af\u3067\u30b3\u30f3\u30c6\u30ca\u306b\u5bfe\u3057\u3066\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u51fa\u6765\u308b\u305f\u3081\u3001CLI\u4ee5\u4e0a\u306b\u624b\u8efd\u3055\u3092\u611f\u3058\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305fCLI\u3067\u5b9f\u884c\u3059\u308b\u969b\u306b\u306f\u4e8b\u524d\u306b\u30bf\u30b9\u30afID\u3092\u63a7\u3048\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u304c<br \/>\nAWS ToolKit\u3067\u306f\u305d\u306e\u624b\u9593\u3082\u306a\u304f\u306a\u308b\u306e\u3067\u5927\u5909\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002<\/p>\n<h3>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n<p>\u4e00\u65b9\u3067\u5b9f\u884c\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bbash\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3082 \u305d\u308c\u4ee5\u964d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u30b3\u30f3\u30c6\u30ca\u5185\u90e8\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3084\u4fee\u6b63\u7b49\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3001AWS CLI\u304b\u3089\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<br \/>\n\uff08CLI\u3067\u306e\u8a2d\u5b9a\u624b\u9806\u306f\u304f\u3069\u3044\u3088\u3046\u3067\u3059\u304c<a href=\"https:\/\/www.skyarch.net\/blog\/?p=20843\">\u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u30022\u56de\u76ee\uff09<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/9716889268446a70b8de4555d8ea8337.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/9716889268446a70b8de4555d8ea8337.png\" alt=\"\" width=\"867\" height=\"148\" class=\"alignnone size-full wp-image-21783\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/9716889268446a70b8de4555d8ea8337.png 867w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/9716889268446a70b8de4555d8ea8337-300x51.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/9716889268446a70b8de4555d8ea8337-768x131.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/9716889268446a70b8de4555d8ea8337-728x124.png 728w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><\/a><\/p>\n<h2 id=\"yodan\">\u4f59\u8ac7<\/h2>\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001\u5f53\u30d6\u30ed\u30b0\u3092\u691c\u8a3c\u3059\u308b\u969b\u306b\u300cRun command in container\u300d\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d<br \/>\n\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u51fa\u3066\u63a5\u7d9a\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>\n[ERROR]: Failed to execute command in container, InvalidParameterException: The execute command failed because execute command was not enabled when the task was run or the execute command agent isn\u2019t running. Wait and try again or run a new task with execute command enabled and try again.\n<\/pre>\n<p>\u3053\u3046\u306a\u3063\u305f\u3089\u3042\u306e\u5b50\u306e\u51fa\u756a\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/github.com\/aws-containers\/amazon-ecs-exec-checker\">ECS Exec Checker<\/a> \u30c4\u30fc\u30eb\u3045\u3045\uff08\u5927\u25cb\u306e\u3076\u4ee3\u3055\u3093\u98a8\u306b\uff09<br \/>\n\uff08\u4f7f\u7528\u65b9\u6cd5\u306f<a href=\"https:\/\/www.skyarch.net\/blog\/?p=20843\">\u3053\u3061\u3089\u306e\u30d6\u30ed\u30b0<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u304f\u3069\u3044\u3067\u3059\u306d\uff09<\/p>\n<p>\u306a\u3093\u304b\u51fa\u3066\u307e\u3059\u306d\u3002\u3069\u308c\u3069\u308c\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3.png\" alt=\"\" width=\"1321\" height=\"743\" class=\"alignnone size-full wp-image-21785\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3.png 1321w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3-300x169.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3-1024x576.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3-768x432.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/03\/image-16-3-728x409.png 728w\" sizes=\"auto, (max-width: 1321px) 100vw, 1321px\" \/><\/a><\/p>\n<p>\u3053\u3061\u3089\u3067\u3059\u306d\u3002<\/p>\n<pre>SSM PrivateLink \"com.amazonaws.ap-northeast-1.ssmmessages\" not found. You must ensure your task has proper outbound internet connectivity.<\/pre>\n<p>\u691c\u8a3c\u7528\u306b\u4f5c\u6210\u3057\u305fFargate\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b5\u30d6\u30cd\u30c3\u30c8\u5185\u3067\u5b9f\u884c\u3057\u3066\u3044\u305f\u3053\u3068\u3092\u5fd8\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3046\u3067\u3059\u306d\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u30de\u30cd\u30fc\u30b8\u30e1\u30f3\u30c8\u7528\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u5fc5\u8981\u3067\u3057\u305f\u306d\u3002<br \/>\n\u304d\u3061\u3093\u3068\u8a2d\u5b9a\u3059\u308b\u3068\u300cRun command in container\u300d\u304c\u5b9f\u884c\u51fa\u6765\u307e\u3057\u305f\uff01<br \/>\n\u3081\u3067\u305f\u3057\u3081\u3067\u305f\u3057\u3002<\/p>\n<h2 id=\"sankou\">\u53c2\u8003\u8a18\u4e8b<\/h2>\n<ul>\n<li><a href=\"https:\/\/aws.amazon.com\/jp\/about-aws\/whats-new\/2021\/12\/aws-toolkit-vs-code-amazon-ecs-exec\/\">AWS Toolkit for VS Code \u306b Amazon ECS \u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u7528 Amazon ECS Exec \u306e\u30b5\u30dd\u30fc\u30c8\u304c\u8ffd\u52a0<\/a><\/li>\n<li><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=AmazonWebServices.aws-toolkit-vscode\">AWS Toolkit \u7c21\u6613\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/li>\n<li><a href=\"https:\/\/docs.aws.amazon.com\/toolkit-for-vscode\/latest\/userguide\/welcome.html?icmpid=docs_tookitvscode_console\">AWS Toolkit for VisualStudioCode\u306e\u30e6\u30fc\u30b6\u30fc\u30ac\u30a4\u30c9<\/a><\/li>\n<\/ul>\n<h1>\u3055\u3044\u3054\u306b<\/h1>\n<p>ECS\u3084Lambda\u3068\u3044\u3063\u305f\u30b5\u30fc\u30d0\u30ec\u30b9\/\u30b3\u30f3\u30c6\u30ca\u958b\u767a\u306f\u3001\u591a\u304f\u306e\u5b9f\u7e3e\u304c\u3042\u308a\u5f97\u610f\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u958b\u767a\u306e\u3054\u76f8\u8ac7\u7b49\u3042\u308c\u3070\u304a\u554f\u3044\u5408\u308f\u305b\u9802\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u4ee5\u524d\u306e\u308f\u305f\u304f\u3057\u306e\u30d6\u30ed\u30b0\u306b\u3066 ECS Exec\u306e\u7d20\u6674\u3089\u3057\u3055\u3092\u304a\u4f1d\u3048\u3057\u307e\u3057\u305f\u304c \u3053\u306e\u5ea6VS Code\u306bECS Exec\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u8aad\u3093\u3067\u7c21\u5358\u306bECS Exec\u304c\u51fa\u6765\u308b\u3068\u77e5\u308a\u30c8\u30e9\u30a4\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u76ee\u6b21 Amazon &#8230;<\/p>\n","protected":false},"author":135,"featured_media":21769,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=21767","footnotes":""},"categories":[20,515,9],"tags":[303,1018,1147,352],"class_list":{"0":"post-21767","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-fargate","9":"category-dev","10":"tag-ecs","11":"tag-fargate","12":"tag-vs-code","13":"tag-352","14":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/21767","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\/135"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=21767"}],"version-history":[{"count":9,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/21767\/revisions"}],"predecessor-version":[{"id":21793,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/21767\/revisions\/21793"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/21769"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=21767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=21767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=21767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}