{"id":15988,"date":"2016-06-07T13:17:41","date_gmt":"2016-06-07T04:17:41","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=15988"},"modified":"2016-06-07T13:17:41","modified_gmt":"2016-06-07T04:17:41","slug":"subiam%e3%82%92%e4%bd%bf%e3%81%84aws%e3%81%aeiam%e7%ae%a1%e7%90%86%e3%82%92%e3%82%b3%e3%83%bc%e3%83%89%e3%83%99%e3%83%bc%e3%82%b9%e3%81%a7%e3%81%8a%e3%81%93%e3%81%aa%e3%81%86","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2016\/06\/15988\/","title":{"rendered":"Subiam\u3092\u4f7f\u3044AWS\u306eIAM\u7ba1\u7406\u3092\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u304a\u3053\u306a\u3046"},"content":{"rendered":"<p>\u77e2\u53e3\u3067\u3059\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u306fAWS\u306eIAM\u3092\u3069\u306e\u3088\u3046\u306b\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<br \/>\n\u30b0\u30ea\u30fc\u3067\u306f\u8272\u3005\u306a\u8981\u4ef6\u304b\u3089Miam\u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092fork\u3057\u3066 <a href=\"https:\/\/github.com\/gree\/subiam\"><strong>Subiam<\/strong><\/a> \u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092\u958b\u767a\u3057\u5229\u7528\u3057\u306f\u3058\u3081\u307e\u3057\u305f\u3002<br \/>\nSubiam\u306f\u65e2\u5b58\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306eIAM\u904b\u7528\u3092\u963b\u5bb3\u305b\u305a\u306b\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u5b89\u5168\u306aIAM\u7ba1\u7406\u3092\u59cb\u3081\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/gree\/subiam\">https:\/\/github.com\/gree\/subiam<\/a><\/p>\n<h3>\u7279\u5fb4<\/h3>\n<ul>\n<li>\u30b3\u30fc\u30c9\u3067IAM\u3092\u7ba1\u7406\u3067\u304d\u308b<\/li>\n<li>\u5dee\u5206\u3092\u81ea\u52d5\u691c\u51fa\u3057\u3066\u9069\u7528<\/li>\n<li>IAM\u5168\u4f53\u3067\u306f\u306a\u304f\u4efb\u610f\u306e\u7bc4\u56f2\u3060\u3051\u3092\u5207\u308a\u53d6\u3063\u3066\u7ba1\u7406\u3067\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u914d\u616e\u3055\u308c\u3066\u3044\u308b<\/li>\n<li>dryrun\u3067\u304d\u308b<\/li>\n<li>\u73fe\u5728\u306e\u72b6\u614b\u3092\u30e6\u30fc\u30b6\u30fc\u304c\u7ba1\u7406\u3057\u4fdd\u5b58\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u306a\u3044<\/li>\n<li>\u8907\u6570AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u6271\u3044\u3084\u3059\u3044\u3088\u3046Role Name\u306a\u3069\u3092\u81ea\u5206\u3067\u5b9a\u7fa9\u3067\u304d\u5171\u901a\u306b\u3067\u304d\u308b<\/li>\n<\/ul>\n<h3>\u65e2\u5b58\u30c4\u30fc\u30eb\u3068\u306e\u6bd4\u8f03<\/h3>\n<p>\u30c4\u30fc\u30eb\u306e\u512a\u52a3\u3092\u793a\u3059\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u81ea\u5206\u305f\u3061\u306b\u5fc5\u8981\u3067\u3042\u3063\u305f\u8981\u4ef6\u306b\u3064\u3044\u3066\u306e\u307f\u6bd4\u8f03\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Subiam\u3000<\/th>\n<th>Miam\u3000<\/th>\n<th>CloudFormation\u3000<\/th>\n<th>Terraform\u3000<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30b3\u30fc\u30c9\u3067IAM\u3092\u7ba1\u7406\u3067\u304d\u308b<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>\u5dee\u5206\u3092\u81ea\u52d5\u691c\u51fa\u3057\u3066\u9069\u7528<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>IAM\u5168\u4f53\u3067\u306f\u306a\u304f\u4efb\u610f\u306e\u7bc4\u56f2\u3060\u3051\u3092\u5207\u308a\u53d6\u3063\u3066\u7ba1\u7406\u3067\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u306a\u3044\u3088\u3046\u914d\u616e\u3055\u308c\u3066\u3044\u308b<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>dryrun\u3067\u304d\u308b<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<tr>\n<td>\u73fe\u5728\u306e\u72b6\u614b\u3092\u30e6\u30fc\u30b6\u30fc\u304c\u7ba1\u7406\u3057\u4fdd\u5b58\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u306a\u3044<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>\u8907\u6570AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u6271\u3044\u3084\u3059\u3044\u3088\u3046Role Name\u306a\u3069\u3092\u81ea\u5206\u3067\u5b9a\u7fa9\u3067\u304d\u5171\u901a\u306b\u3067\u304d\u308b<\/td>\n<td>Yes<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>Yes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h3>\u30b0\u30ea\u30fc\u3067\u306e\u5229\u7528<\/h3>\n<p>\u30b0\u30ea\u30fc\u3067\u306f\u6a5f\u80fd\u5358\u4f4d\u3067IAM\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u8907\u6570\u30d7\u30ed\u30c0\u30af\u30c8\u306b\u540c\u4e00\u306eIAM\u8a2d\u5b9a\u3092\u9069\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>\u4f8b.<\/h4>\n<p>\u4f8b\u3068\u3057\u3066MySQL\u306e\u76e3\u8996\u3084failover\u306a\u3069\u3092\u884c\u3046\u30c4\u30fc\u30eb <code>MySQL Manager<\/code> \u3068\u3044\u3046\u30c4\u30fc\u30eb\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c4\u30fc\u30eb\u306f1\u3064\u306eEC2 Instance\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u3082\u306e\u3067\u30011\u3064\u306eVPC (AWS\u30a2\u30ab\u30a6\u30f3\u30c8) \u306b\u3064\u304d1\u53f0\u306eInstance\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c4\u30fc\u30eb\u309210\u500b\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u5c0e\u5165\u3057\u305f\u3044\u3068\u3044\u3046\u8981\u4ef6\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3044\u3063\u305f\u5834\u5408\u306bSubiam\u3067\u3042\u308c\u3070\u3059\u3079\u3066\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306bapply\u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u540c\u3058Role\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u4ed6\u306eIAM\u304c\u3069\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u304b\u306f\u6c17\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3057\u3001dryrun\u304c\u53ef\u80fd\u306a\u305f\u3081\u8aa4\u3063\u3066\u4f55\u304b\u3092\u4e0a\u66f8\u304d\u3059\u308b\u6050\u308c\u3082\u5c11\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001CloudFormation\u306e\u3088\u3046\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u3054\u3068\u306bRole\u540d\u304c\u9055\u3046\u3068\u3044\u3046\u3053\u3068\u3082\u306a\u3044\u306e\u305f\u3081\u3001Role\u5b9a\u7fa9\u306e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u306a\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u8d77\u52d5\u3092\u81ea\u52d5\u5316\u3059\u308b\u969b\u306a\u3069\u3082\u5bb9\u6613\u306bRole\u306e\u6307\u5b9a\u304c\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><center><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2016\/06\/Untitled-364x400.png\" alt=\"Untitled\" width=\"364\" height=\"400\" class=\"alignnone size-medium wp-image-15990\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2016\/06\/Untitled-364x400.png 364w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2016\/06\/Untitled-182x200.png 182w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2016\/06\/Untitled.png 687w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/center><\/p>\n<h3>Getting Started<\/h3>\n<p>\u307e\u305a\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u307e\u3059\u3002git\u7ba1\u7406\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/yayugu\/cd505cdabc33a1293ddab2d86453af9f.js\"><\/script><\/p>\n<p>\u305d\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059<\/p>\n<p><script src=\"https:\/\/gist.github.com\/yayugu\/2314ead51512aa3e7ea06c19fc9ddb1e.js\"><\/script><\/p>\n<p>policy\u306a\u3069\u3092\u5909\u66f4\u3057\u305f\u304f\u306a\u3063\u305f\u5834\u5408\u306b\u306f\u3001subiam_mytool_instance_role.rb\u3092\u7de8\u96c6\u3057\u3066\u540c\u3058\u3088\u3046\u306bapply\u3059\u308b\u3068\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><\/p>\n<h3>\u3055\u3044\u3054\u306b<\/h3>\n<p>\u30b0\u30ea\u30fc\u3067\u306f\u81ea\u793e\u306e\u8981\u4ef6\u306e\u305f\u3081\u306b\u30c4\u30fc\u30eb\u3092\u958b\u767a\u3057\u307e\u3057\u305f\u3002OSS\u516c\u958b\u3057RubyGems\u306b\u3082\u767b\u9332\u3057\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<br \/>\n\u8907\u6570\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6301\u305f\u306a\u3044\u5834\u5408\u3067\u3082\u65b0\u3057\u3044IAM\u3092\u5b9a\u7fa9\u3057\u305f\u3044\u5834\u5408\u306a\u3069\u306b\u3001\u3059\u3067\u306b\u904b\u7528\u3057\u3066\u3044\u308b\u74b0\u5883\u3078\u7c21\u5358\u306b\u8ffd\u52a0\u3067\u304d\u308b\u3082\u306e\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001fork\u5143\u3067\u3042\u308bMiam\u3068\u305d\u306e\u4f5c\u8005\u306e\u65b9\u306b\u6df1\u304f\u611f\u8b1d\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u77e2\u53e3\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\u306fAWS\u306eIAM\u3092\u3069\u306e\u3088\u3046\u306b\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f \u30b0\u30ea\u30fc\u3067\u306f\u8272\u3005\u306a\u8981\u4ef6\u304b\u3089Miam\u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092fork\u3057\u3066 Subiam \u3068\u3044\u3046\u30c4\u30fc\u30eb\u3092\u958b\u767a\u3057\u5229\u7528\u3057\u306f\u3058\u3081\u307e\u3057\u305f\u3002 Subiam\u306f\u65e2\u5b58\u306eAWS\u30a2\u30ab\u30a6\u30f3 [&hellip;]<\/p>\n","protected":false},"author":128,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[114,115,116],"class_list":["post-15988","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-aws","tag-iam","tag-subiam"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/15988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/128"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=15988"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/15988\/revisions"}],"predecessor-version":[{"id":16014,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/15988\/revisions\/16014"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=15988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=15988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=15988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}