{"id":22521,"date":"2026-02-25T16:00:47","date_gmt":"2026-02-25T07:00:47","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=22521"},"modified":"2026-02-25T12:09:10","modified_gmt":"2026-02-25T03:09:10","slug":"%e3%80%90%e7%b0%a1%e5%8d%98%e3%80%91aws-cli%e3%81%a7%e4%b8%80%e6%8b%ac%e3%82%bf%e3%82%b0%e4%bb%98%e3%81%91%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.ecomottblog.com\/?p=22521","title":{"rendered":"\u3010\u7c21\u5358\u3011AWS CLI\u3067\u4e00\u62ec\u30bf\u30b0\u4ed8\u3051\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p>\u51ac\u306f\u3084\u3063\u3071\u3057\u3055\u3073\u30fc\u306a\u30fc\u2026<br \/>\n\u30af\u30e9\u30a6\u30c9\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u90e8\u306e\u5317\u5cf6\u3067\u3059\u3002<br \/>\n\u300c\u8ab0\u304c\u4f5c\u6210\u8005\uff1f\u300d\u300c\u4f55\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30bd\u30fc\u30b9\uff1f\u300d\u3068\u601d\u3063\u3066\u3057\u307e\u3046<strong>\u30bf\u30b0\u7121\u3057\u30ea\u30bd\u30fc\u30b9<\/strong>\u3092\u898b\u3064\u3051\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u3082\u3044\u308b\u306e\u3067\u306f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u306f\u3001\u3053\u3093\u306a\u30bf\u30b0\u7121\u3057\u306e\u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u306b\u5f8c\u304b\u3089\u5927\u91cf\u306e\u30bf\u30b0\u3092\u4ed8\u3051\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u6b7b\u3093\u3060\u76ee\u3092\u3057\u3066\u3044\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u6367\u3052\u307e\u3059\uff01<\/p>\n<p><!--more--><\/p>\n<h2>\u30bf\u30b0\u7121\u3057\u30ea\u30bd\u30fc\u30b9\u304c\u70b9\u5728<\/h2>\n<p>\u305d\u3082\u305d\u3082\u30bf\u30b0\u306f\u691c\u7d22\u3084\u5206\u985e\u3092\u884c\u3063\u305f\u308a\u3001\u91d1\u92ad\u7684\u30b3\u30b9\u30c8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u958b\u767a\u74b0\u5883\u3068\u306a\u308b\u3068\u300c\u3044\u3063\u305f\u3093\u52d5\u304f\u3053\u3068\u3092\u691c\u8a3c\u3067\u304d\u305f\u3089\u3044\u3044\u300d\u3001\u300c\u672c\u756a\u74b0\u5883\u307b\u3069\u30ac\u30c1\u3067\u7ba1\u7406\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u300d\u3068\u3044\u3046\u3001\u69cb\u7bc9\u8005\u306e\u7518\u3048\u306b\u3088\u308a\u30bf\u30b0\u4ed8\u3051\u3055\u308c\u3066\u3044\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u304c\u70b9\u5728\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u601d\u3048\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u958b\u767a\u74b0\u5883\u3092\u898b\u76f4\u3057\u3066\u3044\u308b\u3068\u3001\u30bf\u30b0\u304c\u4ed8\u3044\u3066\u3044\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u304c\u3044\u304f\u3064\u3082\u898b\u53d7\u3051\u3089\u308c\u307e\u3057\u305f\u3002\u30bf\u30b0\u306e\u672a\u8a2d\u5b9a\u306f\u5358\u306a\u308b\u201c\u898b\u305f\u76ee\u306e\u6574\u3063\u3066\u306a\u3055\u201d\u3067\u306f\u306a\u304f\u3001<strong>\u904b\u7528\u306e\u4e0d\u900f\u660e\u3055\u3092\u5897\u5e45\u3055\u305b\u308b\u554f\u984c<\/strong>\u3068\u306a\u308b\u305f\u3081\u3001\u4f55\u3068\u304b\u3057\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n<h2>\u4eba\u529b\u4f5c\u696d\u306b\u3088\u308b\u75b2\u52b4<\/h2>\n<p>\u79c1\u3082\u5b9f\u969b\u3001\u696d\u52d9\u306e\u4e2d\u3067\u65e2\u5b58\u306e\u958b\u767a\u74b0\u5883\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u30bf\u30b0\u4ed8\u3051\u4f5c\u696d\u3092\u632f\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u69cb\u7bc9\u6642\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u306a\u304c\u3089\u30ea\u30bd\u30fc\u30b9\u540d\u3092\u691c\u7d22\u3057\u3001\u30bf\u30b0\u4ed8\u3051\u3059\u308b\u4f5c\u696d\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u7d50\u8ad6\u3001\u3060\u308b\u3044\uff01\u30ea\u30bd\u30fc\u30b9\u540d\u4ee5\u5916\u306f\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u3082\u5171\u901a\u3059\u308b\u30bf\u30b0\u309210-20\u4ef6\u307b\u3069\u3064\u3051\u3066\u3044\u304f\u306e\u3067\u3059\u304c\u3001\u6642\u9593\u306e\u7121\u99c4\u611f\u304c\u5426\u3081\u306a\u3044\u3002\u865a\u7121\u611f\u306b\u8972\u308f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u7d50\u5c40\u305d\u306e\u6642\u306f\u3001\u300c\u52b9\u7387\u7684\u306a\u30bf\u30b0\u4ed8\u3051\u65b9\u6cd5\u3092\u6a21\u7d22\u3059\u308b\u3088\u308a\u3082\u4eba\u529b\u3067\u4f5c\u696d\u3057\u305f\u307b\u3046\u304c\u65e9\u3044\uff01\u300d\u3068\u3044\u3046\u5224\u65ad\u306e\u3082\u3068\u3001\u8abf\u67fb\u306f\u5f8c\u306b\u3057\u3066\u4f5c\u696d\u3092\u9032\u3081\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30bf\u30b0\u4ed8\u3051\u6551\u4e16\u4e3b\u306e\u5b58\u5728<\/h2>\n<p>\u305d\u306e\u5f8c\u3001\u4eca\u5f8c\u306e\u305f\u3081\u306b\u52b9\u7387\u7684\u306a\u65b9\u6cd5\u304c\u306a\u3044\u304b\u8abf\u3079\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u696d\u52d9\u306e\u4e2d\u3067Lambda\u3084Gateway\u3092CLI\u4e0a\u3067\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u3001\u300c\u30bf\u30b0\u4ed8\u3051\u3082CLI\u4e0a\u3067\u697d\u306b\u3067\u304d\u306a\u3044\u304b\u306a\uff1f\u300d\u3068\u6a21\u7d22\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3001<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cli\/v1\/userguide\/cli_resource-groups-tagging-api_code_examples.html\">Resource Groups Tagging API<\/a>\u3092CLI\u4e0a\u3067\u6d3b\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306eAPI\u306e\u7d20\u6674\u3089\u3057\u3044\u70b9\u306f\u3001<strong>\u300c\u30b5\u30fc\u30d3\u30b9\u3092\u554f\u308f\u305a\u3001\u540c\u3058\u30b3\u30de\u30f3\u30c9\uff08<code>tag-resources<\/code>\uff09\u3067\u4e00\u62ec\u30bf\u30b0\u4ed8\u3051\u304c\u3067\u304d\u308b\u300d<\/strong> \u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u901a\u5e38\u3001Lambda\u306a\u3089 <code>lambda tag-resource<\/code>\u3001S3\u306a\u3089 <code>s3api put-bucket-tagging<\/code> \u3068\u30b3\u30de\u30f3\u30c9\u304c\u30d0\u30e9\u30d0\u30e9\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092\u4f7f\u3048\u3070\u5171\u901a\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u5bfe\u8c61\u30ea\u30bd\u30fc\u30b9\u306eARN\u306b\u8a72\u5f53\u30b5\u30fc\u30d3\u30b9\u540d\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u524d\u63d0\u3067\u9032\u3081\u307e\u3059\u3002<\/p>\n<h2>\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u305f<\/h2>\n<h3>\u4e8b\u524d\u6e96\u5099<\/h3>\n<p>\u5927\u524d\u63d0\u3068\u3057\u3066\u3001AWS CLI\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/AWS CLI\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u78ba\u8a8d\naws --version\n\/\/\u64cd\u4f5c\u3092\u884c\u3046\u30e6\u30fc\u30b6\u30fc\u306e\u78ba\u8a8d\naws sts get-caller-identity\n\/\/\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u9069\u5207\u304b\u3092\u78ba\u8a8d\naws configure list<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u8a2d\u5b9a\u304c\u306a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f<a href=\"https:\/\/docs.aws.amazon.com\/cli\/latest\/userguide\/cli-chap-getting-started.html\">\u516c\u5f0f\u306e\u624b\u9806<\/a>\u306b\u6cbf\u3063\u3066\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Resource Groups Tagging API\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u81ea\u8eab\u304c\u5229\u7528\u3059\u308bIAM\u30dd\u30ea\u30b7\u30fc\u306e\u8a2d\u5b9a\u3082\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"tag:GetResources\",\n                \"tag:TagResources\",\n                \"tag:UntagResources\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}<\/pre>\n<h3>\u5bfe\u8c61\u30ea\u30bd\u30fc\u30b9\u306e\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>\u4eca\u56de\u306f\u30ea\u30bd\u30fc\u30b9\u540d\u306b\u30b5\u30fc\u30d3\u30b9\u540d(test-a)\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u306b\u3001\u4ee5\u4e0b\u306e\u30bf\u30b0\u3092\u4e00\u62ec\u3067\u3064\u3051\u308b\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>User=hiromu.kitajima<\/li>\n<li>ProjectCode=Tech<\/li>\n<li>Environment=Development<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u3053\u3053\u3067\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<code>taggingapi<\/code> \u306e\u300c\u53d6\u5f97\u300d\u30b3\u30de\u30f3\u30c9\u306f\u3001<strong>\u30bf\u30b0\u304c\u4e00\u3064\u3082\u4ed8\u3044\u3066\u3044\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u306f\u691c\u7d22\u306b\u30d2\u30c3\u30c8\u3057\u306a\u3044<\/strong>\u3068\u3044\u3046\u4ed5\u69d8\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u306f\u5404\u30b5\u30fc\u30d3\u30b9\u306e\u5c02\u7528\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u540d\u524d\u306b <code>test-a<\/code> \u3092\u542b\u3080\u30ea\u30bd\u30fc\u30b9\u306eARN\u3092\u78ba\u5b9f\u306b\u62bd\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3053\u308c\u304b\u3089\u4f55\u3092\u66f8\u304d\u63db\u3048\u308b\u306e\u304b\u3092\u660e\u78ba\u306b\u3057\u307e\u3059\u3002\u4eca\u56de\u306fS3\u3068Lambda\u306e\u4e2d\u304b\u3089\u3001\u540d\u524d\u306b&#8221;test-a&#8221;\u3092\u542b\u3080\u3082\u306e\u3092\u62bd\u51fa\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h4>Lambda\u95a2\u6570:<\/h4>\n<pre class=\"lang:default decode:true \">aws lambda list-functions \\\n--region ap-northeast-1 \\\n--query 'Functions[?contains(FunctionName, `test-a`)].FunctionArn' --output text<\/pre>\n<h4>S3\u30d0\u30b1\u30c3\u30c8:<\/h4>\n<pre class=\"lang:default decode:true\">aws s3 ls | grep -i \"test-a\"<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u3055\u308c\u308c\u3070\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u306f\u6210\u529f\u3067\u3059\u3002<br \/>\n\u79c1\u306e\u5834\u5408\u3001\u5b9f\u884c\u6642\u306b\u7279\u5b9a\u306eIAM\u6a29\u9650\u3092\u6301\u3064\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5404\u30b3\u30de\u30f3\u30c9\u306b&#8211;profile\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3057\u3066\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">h_kitajima@ecmt-hkitajima:~$ aws lambda list-functions \\\n  --region ap-northeast-1 \\\n  --profile xxxx \\\n  --query 'Functions[?contains(FunctionName, `test-a`)].FunctionArn' --output text\narn:aws:lambda:ap-northeast-1:xxxxxxx:function:test-a-lambda\nh_kitajima@ecmt-hkitajima:~$ aws s3 ls --profile xxxx | grep -i \"test-a\"\n2026-02-24 10:08:00 test-a-bucket<\/pre>\n<h3>\u4e00\u62ec\u30bf\u30b0\u4ed8\u3051\u306e\u5b9f\u884c<\/h3>\n<p>\u5bfe\u8c61\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u3001\u3044\u3088\u3044\u3088\u4e00\u62ec\u3067\u30bf\u30b0\u3092\u4ed8\u4e0e\u30fb\u66f4\u65b0\u3057\u307e\u3059\u3002\u5148\u307b\u3069\u306e\u30ea\u30b9\u30c8\u3092\u30d1\u30a4\u30d7\u3067\u7e4b\u304e\u3001\u4e00\u6c17\u306b\u51e6\u7406\u3092\u6d41\u3057\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \"># 1. Lambda \u3068 S3 \u306e ARN \u3092\u307e\u3068\u3081\u3066\u53d6\u5f97\u3057\u3066\u30ea\u30b9\u30c8\u5316\nRESOURCES=$(\naws lambda list-functions \\\n--region ap-northeast-1 \\\n--query 'Functions[?contains(FunctionName, `test-a`)].FunctionArn' \\\n--output text | tr '\\t' '\\n'\n\naws s3api list-buckets \\\n--query 'Buckets[?contains(Name, `test-a`)].Name' \\\n--output text | tr '\\t' '\\n' | xargs -I % echo arn:aws:s3:::%\n)\n\n# 2. \u307e\u3068\u3081\u305f\u30ea\u30b9\u30c8\u306b\u5bfe\u3057\u3066\u4e00\u62ec\u3067\u30bf\u30b0\u4ed8\u3051\u3092\u5b9f\u884c\necho \"$RESOURCES\" | xargs -I {} aws resourcegroupstaggingapi tag-resources \\\n--resource-arn-list {} \\\n--tags '{\"User\":\"hiromu.kitajima\",\"ProjectCode\":\"Tech\",\"Environment\":\"Development\"}'<\/pre>\n<ul>\n<li><code>xargs<\/code>&nbsp;\u306e\u4f7f\u3044\u65b9\u3084\u540c\u6642\u5b9f\u884c\u6570\u306e\u8abf\u6574\u306f\u74b0\u5883\u3084\u5bfe\u8c61\u6570\u306b\u4f9d\u5b58\u3057\u307e\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4e26\u5217\u51e6\u7406\u3092\u5236\u5fa1\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><code>--resource-arn-list<\/code>&nbsp;\u306f\u8907\u6570 ARN \u3092\u540c\u6642\u306b\u6e21\u305b\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f&nbsp;<code>xargs<\/code>&nbsp;\u3067 1 \u4ef6\u305a\u3064\u51e6\u7406\u3057\u3066\u3044\u307e\u3059\u3002\u5bfe\u8c61\u304c\u591a\u6570\u3042\u308b\u5834\u5408\u306f\u30d0\u30c3\u30c1\u5316\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\uff01<br \/>\nLambda\u3068S3\u306e2\u4ef6\u5206\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u6210\u529f\u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\">{\n    \"FailedResourcesMap\": {}\n}\n{\n    \"FailedResourcesMap\": {}\n}<\/pre>\n<h3>\u66f4\u65b0\u5f8c\u306e\u78ba\u8a8d<\/h3>\n<p>\u6700\u5f8c\u306b\u3001\u610f\u56f3\u3057\u305f\u901a\u308a\u306b\u30bf\u30b0\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ed8\u4e0e\u3057\u305f\u30bf\u30b0\u540d\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3001\u5148\u307b\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u30d2\u30c3\u30c8\u3059\u308b\u304b\u691c\u8a3c\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<pre class=\"lang:default decode:true\">aws resourcegroupstaggingapi get-resources \\\n--region ap-northeast-1 \\\n--tag-filters Key=ProjectCode,Values=Tech \\\n--query 'ResourceTagMappingList[?contains(ResourceARN, `test-a`)].{ARN: ResourceARN, Tags: Tags}' \\\n--output table<\/pre>\n<p>\u30c6\u30fc\u30d6\u30eb\u3067\u8a72\u5f53\u30ea\u30bd\u30fc\u30b9\u306b\u30bf\u30b0\u4ed8\u3051\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff01<\/p>\n<pre class=\"lang:default decode:true\">h_kitajima@ecmt-hkitajima:~$ aws resourcegroupstaggingapi get-resources \\\n  --region ap-northeast-1 \\\n  --profile xxxx \\\n  --tag-filters Key=ProjectCode,Values=Tech \\\n  --query 'ResourceTagMappingList[?contains(ResourceARN, `test-a`)].{ARN: ResourceARN, Tags: Tags}' \\\n  --output table\n-----------------------------------------------------------------------\n|                            GetResources                             |\n+---------------------------------------------------------------------+\n|                                 ARN                                 |\n+---------------------------------------------------------------------+\n|  arn:aws:lambda:ap-northeast-1:xxxxxxxxxxxx:function:test-a-lambda  |\n+---------------------------------------------------------------------+\n||                               Tags                                ||\n|+----------------------------+--------------------------------------+|\n||             Key            |                Value                 ||\n|+----------------------------+--------------------------------------+|\n||  User                      |  hiromu.kitajima                     ||\n||  Environment               |  Development                         ||\n||  ProjectCode               |  Tech                                ||\n|+----------------------------+--------------------------------------+|\n|                            GetResources                             |\n+---------------------------------------------------------------------+\n|                                 ARN                                 |\n+---------------------------------------------------------------------+\n|  arn:aws:s3:::test-a-bucket                                         |\n+---------------------------------------------------------------------+\n||                               Tags                                ||\n|+----------------------------+--------------------------------------+|\n||             Key            |                Value                 ||\n|+----------------------------+--------------------------------------+|\n||  User                      |  hiromu.kitajima                     ||\n||  Environment               |  Development                         ||\n||  ProjectCode               |  Tech                                ||\n|+----------------------------+--------------------------------------+|<\/pre>\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3067\u3082\u78ba\u8a8d\u3059\u308b\u3068\u6b63\u5e38\u306b\u30bf\u30b0\u4ed8\u3051\u3055\u308c\u3066\u3044\u307e\u3059\u306d\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-22558\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-300x74.png\" alt=\"\" width=\"1210\" height=\"298\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-300x74.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-1024x253.png 1024w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-768x189.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-1536x379.png 1536w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-2048x505.png 2048w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-304x75.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111415-282x70.png 282w\" sizes=\"(max-width: 1210px) 100vw, 1210px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-22559\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-300x104.png\" alt=\"\" width=\"1211\" height=\"420\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-300x104.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-1024x354.png 1024w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-768x265.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-1536x531.png 1536w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-2048x708.png 2048w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-304x105.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2026\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2026-02-24-111523-282x97.png 282w\" sizes=\"(max-width: 1211px) 100vw, 1211px\" \/><\/p>\n<h2>\u6240\u611f<\/h2>\n<p>\u4eca\u56de\u306f\u3001CLI\u3067\u4e00\u62ec\u30bf\u30b0\u4ed8\u3051\u3092\u884c\u3044\u307e\u3057\u305f\u3002 Resource Groups Tagging API\u3092\u5229\u7528\u3057\u3066\u307f\u305f\u611f\u60f3\u3068\u3057\u3066\u3001\u3059\u3050\u5b9f\u884c\u304c\u3067\u304d\u308b\u624b\u8efd\u3055\u304c\u9b45\u529b\u3060\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u307e\u3068\u3081\u308b\u524d\u306e\u6319\u52d5\u78ba\u8a8d\u3084\u3001\u7c21\u5358\u306a\u8abf\u67fb\u3067\u4f7f\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067\u3001\u62bd\u51fa\u6761\u4ef6\u3084\u30bf\u30b0\u306e\u4ed8\u3051\u66ff\u3048\u7b49\u306e\u8907\u96d1\u306a\u51e6\u7406\u304c\u5897\u3048\u305f\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u306e\u53ef\u8aad\u6027\u304c\u843d\u3061\u308b\u3068\u611f\u3058\u307e\u3057\u305f\u3002\u7279\u306b\u4eca\u56de\u306f\u3001\u30bf\u30b0\u6307\u5b9a\u6642\u306e\u30b9\u30da\u30fc\u30b9\u306e\u6271\u3044\u3084JSON\u5f62\u5f0f\u3067\u306e\u8a18\u8ff0\u306a\u3069\u3001AWS CLI\u7279\u6709\u306e\u300c\u304a\u4f5c\u6cd5\u300d\u306b\u82e6\u6226\u3059\u308b\u5834\u9762\u3082\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u3046\u3057\u305f\u4ed5\u69d8\u306e\u30af\u30bb\u3092\u542b\u3081\u3001\u4eca\u56de\u306e\u3088\u3046\u306a\u300c\u4e00\u62ec\u30bf\u30b0\u66f4\u65b0\u300d\u3084\u300c\u30ea\u30bd\u30fc\u30b9\u524a\u9664\u300d\u306a\u3069\u306e\u7834\u58ca\u7684\u307e\u305f\u306f\u5e83\u7bc4\u56f2\u306a\u4f5c\u696d\u306f\u3001\u3084\u306f\u308a\u30b9\u30af\u30ea\u30d7\u30c8\u5316\u3057\u3066\u4e8b\u524d\u306b\u5185\u5bb9\u3092\u3057\u3063\u304b\u308a\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u3079\u304d\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u300cResource Groups &amp; Tag Editor\u300d\u3067\u3082\u8907\u6570\u30ea\u30bd\u30fc\u30b9\u3092\u691c\u7d22\u30fb\u9078\u629e\u3057\u3066\u4e00\u62ec\u3067\u30bf\u30b0\u4ed8\u3051\u304c\u3067\u304d\u307e\u3059\u3002UI\u64cd\u4f5c\u306f\u76f4\u611f\u7684\u3067\u3001\u5c11\u91cf\u306e\u30ea\u30bd\u30fc\u30b9\u3084\u5358\u7d14\u306a\u30bf\u30b0\u4ed8\u3051\u306a\u3089\u7d20\u65e9\u304f\u4f5c\u696d\u3067\u304d\u307e\u3059\u304c\u3001\u8907\u96d1\u306a\u6761\u4ef6\u3084\u5927\u91cf\u30ea\u30bd\u30fc\u30b9\u3001\u518d\u73fe\u6027\u3084\u81ea\u52d5\u5316\u3092\u91cd\u8996\u3059\u308b\u5834\u5408\u306fCLI\uff0bAPI\u306e\u65b9\u304c\u5411\u3044\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001\u76ee\u7684\u3084\u898f\u6a21\u3001\u904b\u7528\u30b9\u30bf\u30a4\u30eb\u306b\u3088\u3063\u3066\u4e21\u8005\u3092\u3046\u307e\u304f\u4f7f\u3044\u5206\u3051\u3059\u3079\u304d\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u3054\u3068\u306b\u7570\u306a\u308b\u300cName\u300d\u30bf\u30b0\u3092\u4ed8\u3051\u308b\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001\u5727\u5012\u7684\u306b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u9069\u5207\u3067\u3059\u3002 \u3082\u3063\u3068\u3082\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210\u306b\u3082\u76f8\u5fdc\u306e\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u3001\u30ea\u30bd\u30fc\u30b9\u4f5c\u6210\u306e\u6bb5\u968e\u3067\u300c\u3060\u308b\u3044\u300d\u3068\u601d\u3063\u3066\u3082\u3001\u6700\u521d\u306b\u3057\u3063\u304b\u308a\u3068\u30bf\u30b0\u4ed8\u3051\u3092\u3057\u3066\u304a\u304f\u306e\u304c\u3001\u7d50\u679c\u3068\u3057\u3066\u4e00\u756a\u697d\u306a\u9053\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6700\u5f8c\u307e\u3067\u304a\u8aad\u307f\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305f\u3001\u30a8\u30b3\u30e2\u30c3\u30c8\u3067\u306f\u4e00\u7dd2\u306b\u30e2\u30ce\u3065\u304f\u308a\u3092\u3057\u3066\u3044\u304f\u4ef2\u9593\u3092\u968f\u6642\u52df\u96c6\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5f0a\u793e\u306b\u5c11\u3057\u3067\u3082\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u305c\u3072\u4e0b\u8a18\u306e\u63a1\u7528\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff01<\/p>\n<ul>\n<li><a href=\"https:\/\/www.wantedly.com\/companies\/ecomott2\/projects\">Wantedly<\/a><\/li>\n<li><a href=\"https:\/\/www.ecomott.co.jp\/recruit\/?__hstc=42779642.a8c8704dec326b3c77f9ee44861aff6e.1716777314693.1721088108443.1721176219041.17&amp;__hssc=42779642.1.1721176219041&amp;__hsfp=241943720\">\u52df\u96c6\u8981\u9805\uff08\u5f53\u793eHP\uff09<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u51ac\u306f\u3084\u3063\u3071\u3057\u3055\u3073\u30fc\u306a\u30fc\u2026 \u30af\u30e9\u30a6\u30c9\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u90e8\u306e\u5317\u5cf6\u3067\u3059\u3002 \u300c\u8ab0\u304c\u4f5c\u6210\u8005\uff1f\u300d\u300c\u4f55\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30bd\u30fc\u30b9\uff1f\u300d\u3068\u601d\u3063\u3066\u3057\u307e\u3046\u30bf\u30b0\u7121\u3057\u30ea\u30bd\u30fc\u30b9\u3092\u898b\u3064\u3051\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u3082\u3044\u308b\u306e\u3067\u306f\u3068\u601d\u3044\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u306f\u3001\u3053\u3093\u306a\u30bf\u30b0\u7121\u3057\u306e [&hellip;]<\/p>\n","protected":false},"author":125,"featured_media":22594,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[24,418,419,300],"_links":{"self":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/22521"}],"collection":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/125"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22521"}],"version-history":[{"count":21,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/22521\/revisions"}],"predecessor-version":[{"id":22760,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/22521\/revisions\/22760"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/22594"}],"wp:attachment":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}