{"id":5497,"date":"2022-01-18T12:45:34","date_gmt":"2022-01-18T03:45:34","guid":{"rendered":"https:\/\/greentown.tokyo\/?p=5497"},"modified":"2022-01-18T12:46:09","modified_gmt":"2022-01-18T03:46:09","slug":"aws-sts-assume-role","status":"publish","type":"post","link":"https:\/\/greentown.tokyo\/?p=5497","title":{"rendered":"AWS STS Assume Role"},"content":{"rendered":"\n<h3>\u304a\u3055\u3089\u3044<\/h3>\n<h4>STS\u306f<\/h4>\n<ul>\n<li>AWS\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1\u3059\u308b\u4e00\u6642\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a8d\u8a3c<\/li>\n<li>IAM\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\b\u76f8\u5f53\u306e\u6a5f\u80fd\u3092IAM\u30e6\u30fc\u30b6\u30fc\u4ee5\u5916\u306b\u3082\u63d0\u4f9b\u3067\u304d\u308b<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u306b\u7d10\u4ed8\u3044\u3066\u3044\u308b\uff11\u30e6\u30fc\u30b6\u30fc\u3075\u305f\u3064\u307e\u3067\u4f5c\u308c\u308b<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u304c\u5897\u3048\u308b\u3068\u30ea\u30b9\u30af\u304c\u5897\u3048\u308b\u3002IAM\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u305b\u305a\uff08\u307e\u305f\u306f\u6a29\u9650\u3092\u4ed8\u3051\u305a\uff09\u306bSTS\u7d4c\u7531\u3067\u4e00\u6642\u7684\u306bIAM\u76f8\u5f53\u306e\u6a29\u9650\u3092\u4ed8\u3051\u3001AWS\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u304c\u5b89\u5168<\/li>\n<\/ul>\n<h4>IAM\u30e6\u30fc\u30b6\u30fc\u3068\u306f<\/h4>\n<ul>\n<li>\u5916\u90e8\u306e\u5229\u7528\u8005\u3001\u5916\u90e8\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u6a29\u9650\u3092\u6e21\u3059\u305f\u3081\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n<h4>IAM\u30ed\u30fc\u30eb\u3068\u306f<\/h4>\n<ul>\n<li>AWS\u5185\u90e8\u3067AWS\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u4ed6\u306eAWS\u30ea\u30bd\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b\u4f7f\u3046\u3082\u306e\u3002<\/li>\n<li>AWS\u30ea\u30bd\u30fc\u30b9\u306b\u306fIAM\u30e6\u30fc\u30b6\u30fc\u3082\u542b\u307e\u308c\u308b\u3002<\/li>\n<li>\u30ed\u30fc\u30eb\u306e\u5f15\u304d\u53d7\u3051\u3092\u3059\u308b\u3001\u5f15\u304d\u53d7\u3051\u5074\u306e\u3053\u3068\u3002<\/li>\n<li>\u5f15\u304d\u53d7\u3051\u308b\u5074\u306b\u306fIAM\u30e6\u30fc\u30b6\u30fc\u3084AWS\u30ea\u30bd\u30fc\u30b9\u304c\u3042\u308b<\/li>\n<li>\u6a29\u9650\u306e\u304b\u3076\u308a\u304b\u3048\u304c\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<p>Assume Role\u306f<\/p>\n<ul>\n<li>IAM\u30ed\u30fc\u30eb\u306e\u88cf\u5074\u3067\u306fAssumeRole\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b<\/li>\n<\/ul>\n<h4>STS\u306e\u4e3b\u306a\u6a5f\u80fd<\/h4>\n<h5>\u8a8d\u8a3c\u60c5\u5831\u53d6\u5f97<\/h5>\n<h6>GetAccessKeyInfo<\/h6>\n<ul>\n<li>AWSID\u53d6\u5f97<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u3001IAM\u30ed\u30fc\u30eb\u3067\u5229\u7528\u53ef\u80fd<\/li>\n<li>ReadOnlyAccess\u30dd\u30ea\u30b7\u30fc\u5229\u7528\u5316<\/li>\n<\/ul>\n<h6>GetCallerIdentity<\/h6>\n<ul>\n<li>\u5b9f\u884c\u6a29\u9650\u306eAWSID\u3084IAM\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\uff08IAM\u30e6\u30fc\u30b6\u30fc\u3001IAM\u30ed\u30fc\u30eb\uff09\u60c5\u5831\u53d6\u5f97<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u3001IAM\u30ed\u30fc\u30eb\u3067\u5229\u7528\u53ef\u80fd<\/li>\n<li>ReadOnlyAccess\u30dd\u30ea\u30b7\u30fc\u5229\u7528\u53ef\u80fd<\/li>\n<\/ul>\n<h5>\u6697\u53f7\u5316\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8907\u5408<\/h5>\n<h6>DecodeAuthorizationMessage<\/h6>\n<ul>\n<li>EC2\u306a\u3069\u306e\u6697\u53f7\u5316\u3055\u308c\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8907\u5408\u3059\u308b<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u5229\u7528\u53ef\u80fd<\/li>\n<li>ReadOnlyAccess\u30dd\u30ea\u30b7\u30fc\u306f\u4f7f\u3048\u306a\u3044\u306e\u3067\u30ab\u30b9\u30bf\u30e0\u30dd\u30ea\u30b7\u30fc\u304c\u5fc5\u8981<\/li>\n<\/ul>\n<h5>\u30c8\u30fc\u30af\u30f3\u767a\u884c<\/h5>\n<h6>GetSessionToken<\/h6>\n<ul>\n<li>\u305d\u306eIAM\u30e6\u30fc\u30b6\u30fc\u3068\u540c\u3058\u6a29\u9650\u306e\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u5229\u7528\u53ef\u80fd<\/li>\n<li>IAM\u3092\u64cd\u4f5c\u3059\u308b\u306b\u306fMFA\u304c\u5fc5\u9808<\/li>\n<li>ReadOnlyAccess\u30dd\u30ea\u30b7\u30fc\u5229\u7528\u53ef\u80fd<\/li>\n<\/ul>\n<h6>GetFederationToken<\/h6>\n<ul>\n<li>\u305d\u306eIAM\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u5185\u306e\u4e00\u6642\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u5229\u7528\u53ef\u80fd<\/li>\n<li>CLI\u3084SDK\u3067\u306f\u5229\u7528\u4e0d\u53ef\uff08\u767a\u884c\u3060\u3051\u306f\u3067\u304d\u308b\u3089\u3057\u3044\uff09<\/li>\n<li>ReadOnlyAccess\u30dd\u30ea\u30b7\u30fc\u306f\u4f7f\u3048\u306a\u3044\u306e\u3067\u30ab\u30b9\u30bf\u30e0\u30dd\u30ea\u30b7\u30fc\u304c\u5fc5\u8981<\/li>\n<\/ul>\n<h6>AssumeRole<\/h6>\n<ul>\n<li>Principal\u306b\u306a\u3063\u3066\u3044\u308bIAM\u30ed\u30fc\u30eb\u306e\u6a29\u9650\u3092\u53d6\u5f97\u3059\u308b\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b<\/li>\n<li>IAM\u30e6\u30fc\u30b6\u30fc\u3001IAM\u30ed\u30fc\u30eb\u3067\u5229\u7528\u53ef\u80fd<\/li>\n<li>ReadOnlyAccess\u30dd\u30ea\u30b7\u30fc\u306f\u4f7f\u3048\u306a\u3044\u306e\u3067\u30ab\u30b9\u30bf\u30e0\u30dd\u30ea\u30b7\u30fc\u304c\u5fc5\u8981<\/li>\n<\/ul>\n<h3>Role\u306e\u5f15\u304d\u53d7\u3051<\/h3>\n<ul>\n<li>\u30ed\u30fc\u30eb\u306f\u5fc5\u305a Principal \u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<\/li>\n<li>\u4fe1\u983c\u30dd\u30ea\u30b7\u30fc\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4f5c\u308a\u4fe1\u983c\u30dd\u30ea\u30b7\u30fc\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08IAM\u30ed\u30fc\u30eb\u306e\u4f5c\u6210\u306b\u5fc5\u8981\u306aJOSN\u30d5\u30a1\u30a4\u30eb\u3002\u898b\u305f\u76ee\u306fIAM\u30dd\u30ea\u30b7\u30fc\u3068\u4f3c\u3066\u3044\u308b\uff09\u3092\u7d44\u307f\u8fbc\u3080\u611f\u3058\u3067IAM\u30ed\u30fc\u30eb\u3092\u4f5c\u308b<\/li>\n<li>Role\u3092\u5f15\u304d\u53d7\u3051\u3089\u308c\u308b\u3072\u3068\u306f Principal \u306e\u307f\n<ul>\n<li>Lambda\u306b\u4f7f\u308f\u305b\u305f\u3044IAM\u30ed\u30fc\u30eb\u306a\u3089\u3001\u5f15\u304d\u53d7\u3051\u3067\u304d\u308b Principal \u306f Lambda \u306b\u306a\u308b<\/li>\n<\/ul>\n<\/li>\n<li>AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u3082 Principal \u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u308b\n<ul>\n<li>Organizations\u306e\u89aa\u304b\u3089\u5b50\u306b\u5bfe\u3057\u3066\u30a2\u30ab\u30a6\u30f3\u30c8\u5358\u4f4d\u3067 Principal \u3067\u304d\u308b\uff08\uff1f\uff09<\/li>\n<\/ul>\n<\/li>\n<li>IAM\u30ed\u30fc\u30eb\u306f\u8ab0\u306b\u4f7f\u308f\u305b\u308b\u304b\u3092\u3042\u3089\u304b\u3058\u3081\u8a2d\u5b9a\u3059\u308b\u3082\u306e<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":5421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[99],"tags":[],"class_list":["post-5497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws"],"_links":{"self":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5497"}],"collection":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5497"}],"version-history":[{"count":7,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5497\/revisions"}],"predecessor-version":[{"id":5504,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/5497\/revisions\/5504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/media\/5421"}],"wp:attachment":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}