☀️
Amazon Bedrock の JP Cross-Region Inference で日本国内に閉じた推論を実現するぞ!
JP Cross-Region Inference が来たぞ!
本日(9/30)、Amazon Bedrock の Claude Sonnet 4.5 に使えるようになったと同時に、Cross-Region Inference Profile に jp
が追加されました。これは日本国内(ap-northeast-1 と ap-northeast-3)に閉じた形でのクロスリージョン推論となり、データガバナンスやコンプライアンス要件で「日本国内に閉じて処理したい」というニーズに対応することができます。
Cross-Region Inference Profile の確認
まずは ap-northeast-1 で利用できる Claude Sonnet 4.5 の Cross-Region Inference Profile を確認してみます。
$ aws bedrock list-inference-profiles --region ap-northeast-1 --query 'inferenceProfileSummaries[?contains(inferenceProfileId, `claude-sonnet-4-5`)].[inferenceProfileId,inferenceProfileName]' --output table
結果
----------------------------------------------------------------------------------------
| ListInferenceProfiles |
+---------------------------------------------------+----------------------------------+
| global.anthropic.claude-sonnet-4-5-20250929-v1:0 | Global Claude Sonnet 4.5 |
| jp.anthropic.claude-sonnet-4-5-20250929-v1:0 | JP Anthropic Claude Sonnet 4.5 |
+---------------------------------------------------+----------------------------------+
グローバル推論プロファイルとは別に jp
が登場していますね。
boto3 での推論コード
それでは実際に JP Cross-Region Inference を使って、国内に閉じた形で推論してみましょう。
import boto3
import json
bedrock_runtime = boto3.client("bedrock-runtime", region_name="ap-northeast-1")
response = bedrock_runtime.invoke_model(
modelId="jp.anthropic.claude-sonnet-4-5-20250929-v1:0",
body=json.dumps({
"anthropic_version": "bedrock-2023-05-31",
"max_tokens": 1000,
"messages": [{"role": "user", "content": "こんにちは"}]
})
)
response_body = json.loads(response['body'].read())
print(response_body['content'][0]['text'])
# 出力例 => こんにちは!お元気ですか?何かお手伝いできることがあれば、お気軽にお聞きください。
CloudWatch Logs で推論リージョンを確認
次に、モデル呼び出しのログ記録を確認し、実際に東京リージョンで推論されているかを確認していきましょう。以下は実際に見てみたログ(一部マスキング)です。
{
"timestamp": "2025-09-30T05:19:13Z",
"accountId": "xxxxx",
"region": "ap-northeast-1",
"requestId": "xxxxx",
"operation": "InvokeModel",
"modelId": "arn:aws:bedrock:ap-northeast-1:xxxxx:inference-profile/jp.anthropic.claude-sonnet-4-5-20250929-v1:0",
"inferenceRegion": "ap-northeast-1", # 推論実行リージョン
"schemaType": "ModelInvocationLog",
"schemaVersion": "1.0"
}
"inferenceRegion": "ap-northeast-1"
となっており、実際に東京リージョンで推論が実行されたことが確認できました!
おわりに
JP Cross-Region Inference を使うことで、日本国内(ap-northeast-1 と ap-northeast-3)に閉じた形で Claude 4.5 の推論ができることを確認しました。日本国内に閉じた処理が必要な場合は、ぜひ JP Cross-Region Inference を使ってみてください。GenU も早速 Claude Sonnet 4.5 に対応しています、さすが!
Discussion