{"id":2773,"date":"2025-03-25T17:23:11","date_gmt":"2025-03-25T09:23:11","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=2773"},"modified":"2025-03-25T17:23:11","modified_gmt":"2025-03-25T09:23:11","slug":"rhzazsyd","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/ja\/rhzazsyd\/","title":{"rendered":"Amazon Bedrock \u3067 DeepSeek \u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Amazon Bedrock \u306f\u3001AWS \u304c\u63d0\u4f9b\u3059\u308b\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u306e\u751f\u6210 AI \u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308a\u3001\u4f01\u696d\u304c\u56fd\u5185\u306e\u4e3b\u8981\u306a\u5927\u898f\u6a21\u30e2\u30c7\u30eb\u3092\u542b\u3080\u8907\u6570\u306e\u5927\u898f\u6a21\u30e2\u30c7\u30eb\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002 <strong>\u30c7\u30a3\u30fc\u30d7\u30b7\u30fc\u30af<\/strong>\u3002 Bedrock \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u958b\u767a\u8005\u306f\u57fa\u76e4\u3068\u306a\u308b\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u306a\u304f\u3001DeepSeek API \u3092\u3059\u3070\u3084\u304f\u547c\u3073\u51fa\u3057\u3066\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Amazon Bedrock \u3067 DeepSeek \u3092\u4f7f\u7528\u3057\u3066\u3001\u4f01\u696d\u304c\u30c6\u30ad\u30b9\u30c8\u751f\u6210\u3001\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u9867\u5ba2\u30b5\u30fc\u30d3\u30b9\u3001\u30c7\u30fc\u30bf\u5206\u6790\u306a\u3069\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b AI \u3092\u52b9\u679c\u7684\u306b\u6d3b\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>Amazon Bedrock\u3067DeepSeek\u3092\u4f7f\u7528\u3059\u308b\u624b\u9806<\/strong><\/h4>\n<h5><strong>1. Amazon Bedrock \u3092\u6709\u52b9\u306b\u3057\u3066 DeepSeek \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/strong><\/h5>\n<ol>\n<li>AWS \u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u307e\u3059\u3002<\/li>\n<li>\u691c\u7d22\u30d0\u30fc\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044 <strong>\u30a2\u30de\u30be\u30f3\u306e\u5ca9\u76e4<\/strong> \u305d\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u30da\u30fc\u30b8\u306b\u5165\u308a\u307e\u3059\u3002<\/li>\n<li>\u5b58\u5728\u3059\u308b <strong>\u30e2\u30c7\u30eb\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc<\/strong> \u898b\u3064\u304b\u3063\u305f <strong>\u30c7\u30a3\u30fc\u30d7\u30b7\u30fc\u30af<\/strong>\u9069\u5207\u306a\u30e2\u30c7\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h5><strong>2. IAM\u30ed\u30fc\u30eb\u3068\u6a29\u9650\u3092\u8a2d\u5b9a\u3059\u308b<\/strong><\/h5>\n<p>Amazon Bedrock \u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001DeepSeek API \u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306e\u9069\u5207\u306a IAM \u30ed\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ol>\n<li>AWS IAM \u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u65b0\u3057\u3044\u30ed\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>Amazon Bedrock \u306b\u5fc5\u8981\u306a\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u30dd\u30ea\u30b7\u30fc\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002\u4f8b:\n<pre><code class=\"language-json\">{ &quot;\u52b9\u679c&quot;: &quot;\u8a31\u53ef&quot;, &quot;\u30a2\u30af\u30b7\u30e7\u30f3&quot;: &quot;bedrock:*&quot;, &quot;\u30ea\u30bd\u30fc\u30b9&quot;: &quot;*&quot; }\r\n<\/code><\/pre>\n<\/li>\n<li>Amazon Bedrock \u3092\u4f7f\u7528\u3057\u3066\u3001\u30ed\u30fc\u30eb\u3092 AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30d0\u30a4\u30f3\u30c9\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h5><strong>3. AWS SDK\u307e\u305f\u306fAPI\u3092\u4f7f\u7528\u3057\u3066DeepSeek\u3092\u547c\u3073\u51fa\u3059<\/strong><\/h5>\n<p>DeepSeek\u306fPython\u306a\u3069\u306eAWS SDK\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059 <code>\u30dc\u30c83<\/code>) \u307e\u305f\u306f REST API \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h4><strong>\u4f8b: Python \u3092\u4f7f\u7528\u3057\u3066 DeepSeek API \u3092\u547c\u3073\u51fa\u3059<\/strong><\/h4>\n<pre><code class=\"language-python\">import boto3 # Bedrock \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059 client = boto3.client(&#039;bedrock-runtime&#039;) # DeepSeek \u30e2\u30c7\u30eb\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u307e\u3059 response = client.invoke_model( modelId=&#039;deepseek-model-id&#039;, # \u6b63\u3057\u3044 DeepSeek \u30e2\u30c7\u30eb ID \u306b\u7f6e\u304d\u63db\u3048\u307e\u3059 contentType=&#039;application\/json&#039;, body=&#039;{&quot;prompt&quot;: &quot;AI \u306e\u958b\u767a\u306b\u95a2\u3059\u308b\u8a18\u4e8b\u306e\u751f\u6210\u3092\u624b\u4f1d\u3063\u3066\u304f\u3060\u3055\u3044\u3002&quot;}&#039; ) # \u8fd4\u3055\u308c\u305f\u7d50\u679c\u3092\u89e3\u6790\u3057\u307e\u3059 print(response[&quot;body&quot;].read().decode(&quot;utf-8&quot;))\r\n<\/code><\/pre>\n<h5><strong>4. \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306bAWS\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u3092\u7d44\u307f\u5408\u308f\u305b\u308b<\/strong><\/h5>\n<p>Amazon Bedrock \u306e DeepSeek \u3092\u4ed6\u306e AWS \u30b5\u30fc\u30d3\u30b9\u3068\u7d71\u5408\u3057\u3066\u3001\u3088\u308a\u5f37\u529b\u306a AI \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30a2\u30de\u30be\u30f3S3<\/strong>: AI \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4fdd\u5b58\u304a\u3088\u3073\u7ba1\u7406\u3057\u307e\u3059\u3002<\/li>\n<li><strong>Amazon \u30e9\u30e0\u30c0<\/strong>: AI \u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/li>\n<li><strong>Amazon DynamoDB<\/strong>: AI \u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong>\u9069\u7528\u53ef\u80fd\u306a\u30b7\u30ca\u30ea\u30aa<\/strong><\/h4>\n<ul>\n<li><strong>\u30c6\u30ad\u30b9\u30c8\u4f5c\u6210<\/strong>: \u8a18\u4e8b\u3001\u30ec\u30dd\u30fc\u30c8\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0 \u30b3\u30d4\u30fc\u3092\u81ea\u52d5\u7684\u306b\u751f\u6210\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u9867\u5ba2\u30b5\u30fc\u30d3\u30b9<\/strong>: \u9867\u5ba2\u30b5\u30dd\u30fc\u30c8\u306e\u52b9\u7387\u3092\u5411\u4e0a\u3057\u3001\u6b63\u78ba\u306a\u56de\u7b54\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30ca\u30ec\u30c3\u30b8\u30de\u30cd\u30b8\u30e1\u30f3\u30c8<\/strong>\uff1a\u4f01\u696d\u5185\u306e\u30c7\u30fc\u30bf\u3092\u57fa\u306b\u3057\u305f\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u8cea\u554f\u5fdc\u7b54\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30b3\u30fc\u30c9\u751f\u6210<\/strong>: \u958b\u767a\u8005\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u52b9\u7387\u306e\u5411\u4e0a\u3092\u652f\u63f4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong>\u8981\u7d04\u3059\u308b<\/strong><\/h4>\n<p>Amazon Bedrock \u306e DeepSeek \u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u9069\u3057\u305f\u3001\u52b9\u7387\u7684\u3067\u4f7f\u3044\u3084\u3059\u304f\u5b89\u5168\u306a AI \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u4f01\u696d\u306f Amazon Bedrock \u3092\u901a\u3058\u3066 DeepSeek \u306b\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001AWS \u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u30b7\u30b9\u30c6\u30e0\u3092\u8fc5\u901f\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u8a73\u3057\u3044\u60c5\u5831\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u3084\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f\u7d71\u5408\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30da\u30fc\u30b8\u306e\u4e0b\u90e8\u306b\u3042\u308b QR \u30b3\u30fc\u30c9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u3001\u5c02\u9580\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>Amazon Bedrock \u306f\u3001AWS \u304c\u63d0\u4f9b\u3059\u308b\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u578b\u751f\u6210 AI \u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308a\u3001\u4f01\u696d\u306f\u56fd\u5185\u6709\u6570\u306e\u5927\u898f\u6a21\u30e2\u30c7\u30eb\u3067\u3042\u308b DeepSeek \u3092\u542b\u3080\u8907\u6570\u306e\u5927\u898f\u6a21\u30e2\u30c7\u30eb\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3067\u304d\u307e\u3059\u3002 Bedrock \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u958b\u767a\u8005\u306f\u57fa\u76e4\u3068\u306a\u308b\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u306a\u304f\u3001DeepSeek API \u3092\u3059\u3070\u3084\u304f\u547c\u3073\u51fa\u3057\u3066\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3067\u306f\u3001Amazon Bedrock \u3067 DeepSeek \u3092\u4f7f\u7528\u3057\u3066\u3001\u4f01\u696d\u304c\u30c6\u30ad\u30b9\u30c8\u751f\u6210\u3001\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306a\u9867\u5ba2\u30b5\u30fc\u30d3\u30b9\u3001\u30c7\u30fc\u30bf\u5206\u6790\u306a\u3069\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b AI \u3092\u52b9\u679c\u7684\u306b\u6d3b\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>","protected":false},"author":1,"featured_media":2774,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-2773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/2773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/comments?post=2773"}],"version-history":[{"count":0,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/2773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/media\/2774"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/media?parent=2773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/categories?post=2773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/tags?post=2773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}