{"record":{"id":"48edf04c9daefb3e","repo":"earendil-works/pi","slug":"unknown-amazon-bedrock-auth-method-method","errorCode":null,"errorMessage":"Unknown Amazon Bedrock auth method: ${method}","messagePattern":"Unknown Amazon Bedrock auth method: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/ai/src/providers/amazon-bedrock.ts","lineNumber":47,"sourceCode":"\t\t\t};\n\t\t}\n\t\tinteraction.notify({\n\t\t\ttype: \"info\",\n\t\t\tmessage: \"Amazon Bedrock supports AWS profiles, IAM credentials, and role-based credentials.\",\n\t\t\tlinks: [\n\t\t\t\t{\n\t\t\t\t\tlabel: \"AWS credential provider chain\",\n\t\t\t\t\turl: \"https://docs.aws.amazon.com/sdkref/latest/guide/standardized-credentials.html\",\n\t\t\t\t},\n\t\t\t],\n\t\t});\n\t\tif (method === \"aws-profile\") {\n\t\t\treturn {\n\t\t\t\ttype: \"api_key\",\n\t\t\t\tenv: { AWS_PROFILE: await interaction.prompt({ type: \"text\", message: \"Enter AWS profile name\" }) },\n\t\t\t};\n\t\t}\n\t\tif (method !== \"credential-chain\") throw new Error(`Unknown Amazon Bedrock auth method: ${method}`);\n\t\tawait interaction.prompt({\n\t\t\ttype: \"text\",\n\t\t\tmessage: \"Configure AWS credentials, then press Enter to continue\",\n\t\t});\n\t\treturn { type: \"api_key\" };\n\t},\n\tresolve: async ({ ctx, credential, signal }) => {\n\t\tconst env = async (name: string) => {\n\t\t\tsignal.throwIfAborted();\n\t\t\tconst value = await ctx.env(name);\n\t\t\tsignal.throwIfAborted();\n\t\t\treturn value;\n\t\t};\n\t\tif (credential?.key) {\n\t\t\treturn { auth: { apiKey: credential.key }, env: credential.env, source: \"stored credential\" };\n\t\t}\n\t\tif (await env(\"AWS_BEARER_TOKEN_BEDROCK\")) return { auth: {}, source: \"AWS_BEARER_TOKEN_BEDROCK\" };\n\t\tif (credential?.env?.AWS_PROFILE ?? (await env(\"AWS_PROFILE\"))) {","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/earendil-works/pi/blob/4af9d21d3b4d664e4a29fcabfec85171077248e3/packages/ai/src/providers/amazon-bedrock.ts#L29-L65","documentation":"Error \"Unknown Amazon Bedrock auth method: ${method}\" thrown in earendil-works/pi.","triggerScenarios":"Thrown at packages/ai/src/providers/amazon-bedrock.ts:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported Amazon Bedrock auth method such as credentials or profile."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4af9d21d3b4d664e4a29fcabfec85171077248e3","analyzedAt":"2026-08-24T13:07:14.692Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}