{"id":11349,"date":"2020-07-12T09:56:19","date_gmt":"2020-07-12T00:56:19","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=11349"},"modified":"2023-05-27T18:14:23","modified_gmt":"2023-05-27T09:14:23","slug":"%e3%80%90aws%e3%80%91%e3%80%8ciam%e3%80%8d%e3%81%a8%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=11349","title":{"rendered":"\u3010AWS\u3011\u300cIAM\u300d\u3001\u300c\u30dd\u30ea\u30b7\u30fc\u300d\u3001\u300c\u30ed\u30fc\u30eb\u300d"},"content":{"rendered":"<h2>IAM\u3068\u306f\uff1f<\/h2>\n<p>AWS IAM\u81ea\u4f53\u306f\u7121\u6599\u3067\u3059\u3002<\/p>\n<h3>AWS\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u3092\u7ba1\u7406<\/h3>\n<h4>\u30e6\u30fc\u30b6\u30fc\u3084\u30b0\u30eb\u30fc\u30d7\u3078\u306e\u5236\u5fa1\u30dd\u30ea\u30b7\u30fc\u9069\u7528<\/h4>\n<h4>\u30ed\u30fc\u30eb\u3092\u7528\u3044\u305f\u6a29\u9650\u306e\u7ba1\u7406<\/h4>\n<h4>\u793e\u5185\u3084\u5916\u90e8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u306e\u7d71\u5408\uff08ID\u30d5\u30a7\u30c7\u30ec\u30fc\u30b7\u30e7\u30f3\uff09<\/h4>\n<h3>AWS\u30ea\u30bd\u30fc\u30b9\u3092\u30bb\u30ad\u30e5\u30a2\u306b\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b\u8a8d\u8a3c\u30fb\u8a8d\u53ef<\/h3>\n<h3>\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1<\/h3>\n<p>\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/p>\n<h3>\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1<\/h3>\n<p>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3001\u30d5\u30a1\u30a4\u30eb<\/p>\n<h2>\u767b\u5834\u306e\u80cc\u666f<\/h2>\n<p>\u57fa\u672c\u7684\u306bIAM\u304c\u3084\u3063\u3066\u308b\u3053\u3068\u81ea\u4f53\u306f\u5f93\u6765\u304b\u3089\u306e\u7269\u3068\u5909\u308f\u3089\u306a\u3044\u3067\u3059\u3002\u3057\u304b\u3057\u3001AWS\u3092\u4f7f\u3063\u3066\u3044\u304f\u4e0a\u3067\u306f\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30b5\u30fc\u30d3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30dd\u30ea\u30b7\u30fc\u8a2d\u5b9a\u624b\u9593\u306e\u524a\u6e1b<\/h3>\n<p>\u30aa\u30f3\u30d7\u30ec\u306e\u5834\u5408\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306f\u521d\u671f\u69cb\u7bc9\u3067\u8a2d\u5b9a\u3057\u3066\u3057\u307e\u3048\u3070\u305d\u308c\u3067\u3088\u304b\u3063\u305f\u304c\u30af\u30e9\u30a6\u30c9\u6642\u4ee3\u3060\u3068\u30b5\u30fc\u30d0\u30fc\u304c\u5897\u6e1b\u3057\u305f\u308a\u3059\u308b\u306e\u3067\u3044\u3061\u3044\u3061\u4e00\u624b\u3092\u4ecb\u3057\u3066\u3084\u3063\u3066\u3044\u308b\u3068\u624b\u9593\u304c\u304b\u304b\u308a\u3059\u304e\u308b\u3002<\/p>\n<h3>\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u30b5\u30fc\u30d3\u30b9\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002<\/h3>\n<p>\u4eba\u3060\u3051\u3067\u306a\u304f\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3093\u3060\u308a\u3057\u3066\u3044\u308b\u3002\uff08CloudWatch\u306a\u3069\uff09<\/p>\n<h2>IAM\u306e\u8981\u7d20<\/h2>\n<h3>Identities(\u8ab0\uff09<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u3084\u30b0\u30eb\u30fc\u30d7\u306e\u3053\u3068\u3002<\/p>\n<h3>API Actions\uff08\u3069\u3093\u306a\u3053\u3068\u3092\uff09<\/h3>\n<p>\u3069\u3093\u306a\u3053\u3068\u3092\u884c\u3044\u3069\u3093\u306a\u7d50\u679c\u306b\u306a\u308b\u306e\u304b\u3002<\/p>\n<h3>Resources\uff08\u3069\u308c\u306b\uff09<\/h3>\n<p>API Actions\u306e\u5bfe\u8c61\u3068\u306a\u308b\u30ea\u30bd\u30fc\u30b9<\/p>\n<h3>Conditions<\/h3>\n<p>\u6761\u4ef6\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3002\uff08\u7279\u5b9a\u306e\u30a2\u30af\u30bb\u30b9\u5143IP\u304b\u3089\u306e\u307f\u306a\u3069\uff09<\/p>\n<h2>\u30dd\u30ea\u30b7\u30fc<\/h2>\n<p>\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\uff08\u6a29\u9650\uff09\u306e\u5b9a\u7fa9\u3067\u3059\u3002\u300c\u5bfe\u8c61\u306eAWS\u30b5\u30fc\u30d3\u30b9\u300d\u3001\u300c\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u306e\u300d\u3001\u300c\u3069\u3093\u306a\u64cd\u4f5c\u3092\u300d\u3001\u300c\u8a31\u53ef\u3059\u308b\u304b\u300d\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002JSON\u3067\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f8c\u8ff0\u3059\u308b\u300c\u30e6\u30fc\u30b6\u30fc\u5358\u4f4d\u300d\u3001\u300c\u30b0\u30eb\u30fc\u30d7\u5358\u4f4d\u300d\u3001\u300c\u30ed\u30fc\u30eb\u5358\u4f4d\u300d\u3069\u306e\u5358\u4f4d\u306b\u3082\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30dd\u30ea\u30b7\u30fc\u306e\u7a2e\u985e<\/h3>\n<h4>AWS\u7ba1\u7406\u30dd\u30ea\u30b7\u30fc<\/h4>\n<p>AWS\u304c\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3057\u305f\u30dd\u30ea\u30b7\u30fc\u306e\u3053\u3068\u3002<\/p>\n<h4>\u30ab\u30b9\u30bf\u30de\u30fc\u7ba1\u7406\u30dd\u30ea\u30b7\u30fc<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u300cAWS\u7ba1\u7406\u30dd\u30ea\u30b7\u30fc\u300d<\/strong><\/span>\u3088\u308a\u3082\u3088\u308a\u7d30\u304b\u304f\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002GUI\u304b\u3089\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d9\u30fc\u30b9\u3067\u306e\u30dd\u30ea\u30b7\u30fc\u306e\u7a2e\u985e<\/h3>\n<h4>Identity-Based Policies<\/h4>\n<p>\u30a2\u30a4\u30c7\u30f3\u30c6\u30a3\u30c6\u30a3\u30d9\u30fc\u30b9\u306e\u7a2e\u985e\u3001IAM\u30e6\u30fc\u30b6\u30fc\u306b\u9069\u7528\u3059\u308b\u306a\u3069\u30ea\u30bd\u30fc\u30b9\u4e3b\u4f53\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4>Resouce-Based Policies<\/h4>\n<p>\u30ea\u30bd\u30fc\u30b9\u30d9\u30fc\u30b9\u306e\u30dd\u30ea\u30b7\u30fc\u3001\u64cd\u4f5c\u3055\u308c\u308b\u5074\uff08S3\u3084SNS\u7b49\uff09\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30dd\u30ea\u30b7\u30fc\u306e\u8a73\u7d30<\/h3>\n<pre class=\"lang:default decode:true\">{\r\n  \"Version\": \"2012-10-17\",\r\n  \"Statement\": {\r\n    \"Sid\": \"\"\r\n    \"Effect\": \"Allow\",\r\n    \"Principal\": {\"AWS\": \"arn:aws:iam::777788889999:user\/bob\"},\r\n    \"Action\": [\r\n      \"s3:PutObject\",\r\n      \"s3:PutObjectAcl\"\r\n    ],\r\n    \"Condition\": {\r\n      \"StringEquals\": {\r\n        \"aws:SourceIp\": \"12,34,56,12\"\r\n      }\r\n    }\r\n    \"Resource\": \"arn:aws:s3:::example-bucket\/*\"\r\n  }\r\n}<\/pre>\n<h4>Version<\/h4>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<h4>Sid<\/h4>\n<p>ID\u3067\u3059\u3002<\/p>\n<h4>Effect<\/h4>\n<h5>Allow<\/h5>\n<p>\u8a31\u53ef\u3059\u308b\u30dd\u30ea\u30b7\u30fc\u306e\u5834\u5408\u306b\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<h5>Deny\uff08\u30c7\u30ca\u30a4\uff09<\/h5>\n<p>\u62d2\u5426\u3059\u308b\u30dd\u30ea\u30b7\u30fc\u306e\u5834\u5408\u306b\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<h4>Principal<\/h4>\n<p>\u30a2\u30a4\u30c7\u30a3\u30f3\u30c6\u30a3\u30c6\u30a3\u30d9\u30fc\u30b9\u306e\u30dd\u30ea\u30b7\u30fc\u3067\u306f<span style=\"color: #ff0000;\"><strong>\u5229\u7528\u3055\u305b\u305f\u3044\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u660e\u78ba\u306a\u306e\u3067\u6307\u5b9a\u3057\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<h5>\u5168\u3066\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u9069\u7528<\/h5>\n<pre class=\"lang:default decode:true\">\u201cPrincipal\u201d:\u201dAWS\u201d:\u201d*.*\u201d<\/pre>\n<h5>\u7279\u5b9a\u306eIAM\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3002<\/h5>\n<pre class=\"lang:default decode:true\">\"Principal\": {\"AWS\": \"arn:aws:iam::777788889999:user\/username\u201d}<\/pre>\n<h5>Federated\u30e6\u30fc\u30b6\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3002<\/h5>\n<pre class=\"lang:default decode:true\">\"Principal\": {\u201cFederated\u201d: \u201cwww.amazon.com\u201d}<\/pre>\n<h5>\u30ed\u30fc\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3002<\/h5>\n<pre class=\"lang:default decode:true\">\"Principal\": {\"AWS\": \"arn:aws:iam::777788889999:role\/rolename\u201d}<\/pre>\n<h5>\u30b5\u30fc\u30d3\u30b9\u3092\u6307\u5b9a\u3059\u308b\u3002<\/h5>\n<pre class=\"lang:default decode:true \">\"Principal\": {\u201cService\u201d: \u201cec2.amazonaws.com\u201d}<\/pre>\n<h3>StaAction<\/h3>\n<p>\u4f55\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u3069\u306e\u3088\u3046\u306a\u64cd\u4f5c\u304b\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<h4>EC2\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30b9\u30bf\u30fc\u30c8\u3059\u308b\u6307\u793a<\/h4>\n<pre class=\"lang:default decode:true\">\"Action\":\"ec2:StartInstances\"<\/pre>\n<h4>\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8907\u6570\u64cd\u4f5c\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/h4>\n<pre class=\"lang:default decode:true\">\u201cAction: [\u201csqs:SendMessage\u201d,\u201dsqs:ReceiveMessage\u201d]\u201d<\/pre>\n<h4>\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3067\u3082\u64cd\u4f5c\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/h4>\n<pre class=\"lang:default decode:true \">\u201cAction: \u201ciam:*AccessKey*\u201d<\/pre>\n<h3>Resources<\/h3>\n<p>\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \">\"Resource\": \"arn:aws:s3:::example-bucket\/*\"<\/pre>\n<h3>Condition<\/h3>\n<p>\u30dd\u30ea\u30b7\u30fc\u306e\u8a73\u7d30\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h4>\u6307\u5b9a\u3067\u304d\u308b\u9805\u76ee<\/h4>\n<ul>\n<li>IP\u30a2\u30c9\u30ec\u30b9\u306e\u63a5\u7d9a\u5143\u3092\u6307\u5b9a\u3059\u308b\u3002<\/li>\n<li>\u301c\u6642\u301c\u6642\u307e\u3067\u306f\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>\u30e6\u30fc\u30b6\u30fc<\/h2>\n<p>\u500b\u3005\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u30e6\u30fc\u30b6\u30fc\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b0\u30eb\u30fc\u30d7<\/h2>\n<p>IAM\u30e6\u30fc\u30b6\u30fc\u306e\u96c6\u5408\u3067\u3001\u540c\u4e00\u306e\u5f79\u5272\u3092\u6301\u3064\u3042\u308b\u7a0b\u5ea6\u307e\u3068\u307e\u3063\u305f\u30e6\u30fc\u30b6\u30fc\u306b\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u4f5c\u696d\u3092\u7c21\u7d20\u5316\u3067\u304d\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u3068\u540c\u69d8\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001IAM\u30e6\u30fc\u30b6\u30fc\u306f\u8907\u6570\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30b0\u30eb\u30fc\u30d7\u5316\u306e\u30e1\u30ea\u30c3\u30c8<\/h3>\n<p>IAM\u30e6\u30fc\u30b6\u30fc\u306b\u76f4\u63a5\u6a29\u9650\u3092\u4ed8\u4e0e\u3059\u308b\u5834\u5408\u306b\u6bd4\u3079\u3066\u6a29\u9650\u306e\u4ed8\u4e0e\u5fd8\u308c\u3084\u904e\u5270\u4ed8\u4e0e\u3092\u9632\u3052\u307e\u3059\u3002\u307e\u3068\u3081\u3066\u30dd\u30ea\u30b7\u30fc\u3092\u4ed8\u4e0e\u3067\u304d\u308b\u306e\u3067\u624b\u9593\u3082\u304b\u304b\u3089\u306a\u3044\u3067\u3059\u3002<\/p>\n<h3>\u30b0\u30eb\u30fc\u30d7\u306e\u547d\u540d\u898f\u5247<\/h3>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u547d\u540d\u898f\u5247\u3067\u540d\u524d\u3092\u4ed8\u3051\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u306a\u306e\u3067\u6700\u5f8c\u306bs\u3092\u4ed8\u3051\u308b\u304b\u3082\u3057\u304f\u306f\u6700\u5f8c\u306b\u300cgroup\u300d\u3092\u3064\u3051\u308b\u5f62\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u300cAdmins\u300d or \u300cadmin-group\u300d\uff08\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fc\uff09<\/li>\n<li>\u300cOperators\u300d or \u300coperator-group\u300d\uff08\u4e00\u822c\u64cd\u4f5c\u30e6\u30fc\u30b6\u30fc\uff09<\/li>\n<\/ul>\n<h2>\u30ed\u30fc\u30eb<\/h2>\n<p><span style=\"color: #ff0000;\"><strong>IAM\u30e6\u30fc\u30b6\u30fc\u306fAWS\u3092\u5229\u7528\u3059\u308b\u4e0a\u3067\u5fc5\u9808\u306e\u6a5f\u80fd\u3067\u3059\u304c\u3001\u30ed\u30fc\u30eb\u306b\u95a2\u3057\u3066\u306f\u5fc5\u9808\u3067\u306f\u306a\u3044\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u6b63\u3057\u304f\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u5b89\u5168\u6027\u3082\u5229\u4fbf\u6027\u3082\u4e0a\u304c\u308a\u307e\u3059\u3002\uff08\u4f7f\u308f\u305a\u306b\u904e\u3054\u3059\u4eba\u3082\u591a\u3044\u3067\u3059\u3002\uff09<\/strong><\/span>\u4e00\u6642\u7684\uff08\u4e00\u6642\u7684\u306a\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u307f\u305f\u3044\u306a\u306e\u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u3060\u3051\u306a\u306e\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u304c\u9ad8\u3044\uff09\u306b\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u767a\u884c\u3067\u304d\u307e\u3059\u3002AWS\u306e\u6a29\u9650\u3092\u4e0e\u3048\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002EC2\u306b\u5bfe\u3057\u3066IAM\u30ed\u30fc\u30eb\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3084\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u306a\u304fAWS\u306e\u6a29\u9650\u304c\u8a2d\u5b9a\u3055\u308c\u305f\u72b6\u614b\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u30dd\u30ea\u30b7\u30fc\u3092\u8907\u6570\u30a2\u30bf\u30c3\u30c1\u3057\u3066\u6a29\u9650\u3092\u3072\u3068\u307e\u3068\u3081\u3057\u307e\u3059\u3002<\/p>\n<h3>\u7528\u9014<\/h3>\n<p>\u4e00\u6642\u7684\u306a\u8a8d\u8a3c\u60c5\u5831\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<h4>\u30dd\u30ea\u30b7\u30fc\u3092\u8907\u6570\u30a2\u30bf\u30c3\u30c1\u3057\u3066\u6a29\u9650\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3059\u308b\u3002<\/h4>\n<p>IAM Policy(AmazonS3ReadOnlyAccess\u3001S3Policy\u3001AmazonEC2FullAccess)\u3092\u8907\u6570\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30af\u30ed\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u30a2\u30af\u30bb\u30b9<\/h3>\n<p>\u3042\u308b\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u5225\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u7d10\u4ed8\u3051\u308b\u6a5f\u80fd\u3067\u3059\u3002\u4e00\u822c\u7684\u306b\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u73fe\u5834\u3067\u3082\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<h4>\u4f8b<\/h4>\n<p>\u958b\u767a\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u672c\u756a\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30ed\u30fc\u30eb\u3092\u4e00\u6642\u7684\u306b\u59d4\u4efb\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u4e00\u6642\u7684\u306b\u958b\u767a\u30a2\u30ab\u30a6\u30f3\u30c8\u30e6\u30fc\u30b6\u30fc\u304c\u672c\u756a\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>Switch Role<\/h4>\n<p>\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3059\u5fc5\u8981\u3082\u306a\u304f\u3001\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30ea\u30bd\u30fc\u30b9\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3002\u30af\u30ea\u30c3\u30af\u4e00\u3064\u3067\u74b0\u5883\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h5>\u5fc5\u8981\u306a\u8a2d\u5b9a<\/h5>\n<ol>\n<li>\u30b9\u30a4\u30c3\u30c1\u5148\u306b\u30ed\u30fc\u30eb\u3092\u4f5c\u308b\u3002\u305d\u306e\u969b\u306borganization\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308a\u3001\u30b9\u30a4\u30c3\u30c1\u5143\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306eID\u3092\u5272\u308a\u5f53\u3066\u308b\u3002<\/li>\n<li>\u30b9\u30a4\u30c3\u30c1\u5143\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u308b\u3002AssumeRole\u3067\u30b9\u30a4\u30c3\u30c1\u5148\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306a\u30dd\u30ea\u30b7\u30fc\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/li>\n<\/ol>\n<h2>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30fb\u30d0\u30a6\u30f3\u30c0\u30ea\u30fc<\/h2>\n<p>2018\u5e747\u6708\u306b\u767b\u5834\u3057\u305f\u3002IAM\u30e6\u30fc\u30b6\u30fc\u307e\u305f\u306fIAM\u30ed\u30fc\u30eb\u306b\u5bfe\u3059\u308b\u30a2\u30af\u30bb\u30b9\u5236\u9650\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3002<span style=\"color: #ff0000;\"><strong>\u4ed8\u4e0e\u3057\u305f\u6a29\u9650\u3068Boundary\u3067\u8a31\u53ef\u3057\u305f\u6a29\u9650\u304c\u91cd\u306a\u308a\u5408\u3046\u90e8\u5206\u306e\u307f\u304c\u6709\u52b9\u306a\u6a29\u9650\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u30fb\u30d0\u30a6\u30f3\u30c0\u30ea\u30fc\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u6a29\u9650\u306b\u3064\u3044\u3066\u306fIAM\u30e6\u30fc\u30b6\u30fc\u3084\u30ed\u30fc\u30eb\u3067\u3069\u306e\u3088\u3046\u306b\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u3066\u3082\u4e00\u5207\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u7528\u9014<\/h3>\n<ul>\n<li>\u7d44\u7e54\u5916\u306e\u4ed6\u8005\u306b\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u305f\u3044\u5834\u5408\uff08\u5143\u3005\u8a2d\u5b9a\u3057\u305fIAM\u30e6\u30fc\u30b6\u30fc\u3092\u6e21\u3059\u304c\u5fc5\u8981\u306a\u7528\u9014\u3057\u304b\u5229\u7528\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002\uff09<\/li>\n<\/ul>\n<h2>IAM\u306e\u8a2d\u8a08\u65b9\u91dd<\/h2>\n<h3>\u500b\u3005\u306eIAM\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h3>\n<p>\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u306f\u306a\u3093\u3067\u3082\u3067\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3057\u8ab0\u304c\u64cd\u4f5c\u3057\u305f\u304b\u308f\u304b\u3089\u306a\u304f\u306a\u308b\u306e\u3067\u666e\u6bb5\u304b\u3089\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u4f7f\u7528\u3057\u3066AWS\u306b\u306f\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305f\u3001\u5171\u7528\u306eIAM\u30e6\u30fc\u30b6\u30fc\u306a\u3069\u306f\u4f5c\u6210\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u3067\u306a\u304f\u30d7\u30ed\u30b0\u30e9\u30e0\u3084\u30b7\u30b9\u30c6\u30e0\u3054\u3068\u306b\u3082IAM\u30e6\u30fc\u30b6\u30fc\u3092\u5206\u3051\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30e6\u30fc\u30b6\u30fc\u3092\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u3001\u30b0\u30eb\u30fc\u30d7\u306b\u6a29\u9650\u3092\u5272\u308a\u5f53\u3066\u308b\u3002<\/h3>\n<p>\u4e00\u62ec\u3067\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u5f79\u5272\u306b\u5fdc\u3058\u3066\u4efb\u610f\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u6240\u5c5e\u3055\u305b\u308b\u3068\u3044\u3046\u306e\u304c\u826f\u3044\u3002AWS\u304b\u3089\u3082\u305d\u308c\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u6a29\u9650\u306f\u6700\u5c0f\u306b\u3059\u308b\u3002<\/h3>\n<p>\u5fc5\u8981\u306b\u306a\u3063\u305f\u969b\u306b\u6700\u5c0f\u306e\u6a29\u9650\u3067\u767a\u884c\u3059\u308b\u65b9\u91dd\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n<h3>EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u5b9f\u884c\u3059\u308b\u30a2\u30d7\u30ea\u306b\u306f\u30ed\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3002<\/h3>\n<p>\u4e00\u6642\u7684\u306b\u30ad\u30fc\u3092\u767a\u884c\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u5b89\u5168\u3067\u3059\u3002<\/p>\n<h3>\u5b9a\u671f\u7684\u306b\u4e0d\u8981\u306a\u8a8d\u8a3c\u60c5\u5831\u3092\u524a\u9664\u3059\u308b\u3002<\/h3>\n<p>\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3084\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3092\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u767a\u884c\u3057\u3001\u30a2\u30af\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u7834\u68c4\u3092\u3059\u308b\u305f\u3081\u30ad\u30fc\u6f0f\u6d29\u30ea\u30b9\u30af\u304c\u306a\u304f\u5b89\u5168\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u9000\u8077\u8005\u306eIAM\u30e6\u30fc\u30b6\u30fc\u306f\u524a\u9664\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u306a\u3069\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"IAM\u3068\u306f\uff1f AWS IAM\u81ea\u4f53\u306f\u7121\u6599\u3067\u3059\u3002 AWS\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u3092\u7ba1\u7406 \u30e6\u30fc\u30b6\u30fc\u3084\u30b0\u30eb\u30fc\u30d7\u3078\u306e\u5236\u5fa1\u30dd\u30ea\u30b7\u30fc\u9069\u7528 \u30ed\u30fc\u30eb\u3092\u7528\u3044\u305f\u6a29\u9650\u306e\u7ba1\u7406 \u793e\u5185\u3084\u5916\u90e8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u306e\u7d71\u5408\uff08ID\u30d5\u30a7\u30c7\u30ec\u30fc\u30b7\u30e7\u30f3\uff09 AW [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11349"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11349"}],"version-history":[{"count":19,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11349\/revisions"}],"predecessor-version":[{"id":20111,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/11349\/revisions\/20111"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11349"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}