@shinyaz

AgentCore Evaluator の CloudFormation リソースは ap-northeast-1 では未サポート

agentcore add evaluatoragentcore deploy で以下のエラーが出た。

Output
CDK deploy failed: ❌ AgentCore-MyProject-default failed: ValidationError:
Template format error: Unrecognized resource types: [AWS::BedrockAgentCore::Evaluator]

AWS::BedrockAgentCore::Evaluator が ap-northeast-1 の CloudFormation に登録されていないのが原因だった。

Terminal
# ap-northeast-1: 未登録
aws cloudformation describe-type \
  --type RESOURCE \
  --type-name AWS::BedrockAgentCore::Evaluator \
  --region ap-northeast-1
# => TypeNotFoundException
 
# us-east-1: 登録済み
aws cloudformation describe-type \
  --type RESOURCE \
  --type-name AWS::BedrockAgentCore::Evaluator \
  --region us-east-1 \
  --query 'ProvisioningType' --output text
# => FULLY_MUTABLE

Evaluator を使う場合は aws-targets.json のリージョンを us-east-1 に変更する。AgentCore Runtime や Memory は ap-northeast-1 でも動くので、Evaluator 固有の制約だ。

共有する

田原 慎也

田原 慎也

ソリューションアーキテクト @ AWS

AWS ソリューションアーキテクトとして金融業界のお客様を中心に技術支援を行っています。クラウドアーキテクチャや AI/ML に関する学びをこのサイトで発信しています。このサイトの内容は個人の見解であり、所属企業の公式な意見や見解を代表するものではありません。