{"record":{"id":"6e922a9a3883039a","repo":"eyaltoledano/claude-task-master","slug":"warning-aws-access-key-id-and-or-aws-secret-acces","errorCode":null,"errorMessage":"Warning: AWS_ACCESS_KEY_ID and/or AWS_SECRET_ACCESS_KEY environment variables are missing. Will fallback to system configuration (ex: aws config files or ec2 instance profiles).","messagePattern":"Warning: AWS_ACCESS_KEY_ID and/or AWS_SECRET_ACCESS_KEY environment variables are missing\\. Will fallback to system configuration \\(ex: aws config files or ec2 instance profiles\\)\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"apps/cli/src/commands/models/custom-providers.ts","lineNumber":79,"sourceCode":"\t\t\t\t\t\t`You can check available models with: curl ${urlToCheck}/tags`\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn isValid;\n\t\t}\n\t},\n\tBEDROCK: {\n\t\tid: '__CUSTOM_BEDROCK__',\n\t\tname: '* Custom Bedrock model',\n\t\tprovider: CUSTOM_PROVIDERS.BEDROCK,\n\t\tpromptMessage: (role) =>\n\t\t\t`Enter the custom Bedrock Model ID for the ${role} role (e.g., anthropic.claude-3-sonnet-20240229-v1:0):`,\n\t\tcheckEnvVars: () => {\n\t\t\tif (\n\t\t\t\t!process.env.AWS_ACCESS_KEY_ID ||\n\t\t\t\t!process.env.AWS_SECRET_ACCESS_KEY\n\t\t\t) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\tchalk.yellow(\n\t\t\t\t\t\t'Warning: AWS_ACCESS_KEY_ID and/or AWS_SECRET_ACCESS_KEY environment variables are missing. Will fallback to system configuration (ex: aws config files or ec2 instance profiles).'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t},\n\tAZURE: {\n\t\tid: '__CUSTOM_AZURE__',\n\t\tname: '* Custom Azure OpenAI model',\n\t\tprovider: CUSTOM_PROVIDERS.AZURE,\n\t\trequiresBaseURL: true,\n\t\tpromptMessage: (role) =>\n\t\t\t`Enter the Azure deployment name for the ${role} role (e.g., gpt-4o):`,\n\t\tcheckEnvVars: () => {\n\t\t\tif (!process.env.AZURE_OPENAI_API_KEY) {\n\t\t\t\tconsole.error(","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/eyaltoledano/claude-task-master/blob/c0c98d367c55296bfe69e65680625b6db437af02/apps/cli/src/commands/models/custom-providers.ts#L61-L97","documentation":"In custom-providers.ts Bedrock setup, checkEnvVars verifies AWS credentials. If AWS_ACCESS_KEY_ID and/or AWS_SECRET_ACCESS_KEY are unset, it prints this warning explaining that the AWS SDK will fall back to system configuration (shared credentials/config files or EC2 instance profiles). It always returns true, so setup proceeds; this is advisory only.","triggerScenarios":"Running the custom Bedrock model provider setup (role prompt flow) in a shell where neither/one of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY is exported in the environment.","commonSituations":"Configuring Bedrock in a fresh terminal without sourcing the env file; CI containers without injected credentials while relying on ~/.aws/credentials or instance profiles; typos in variable names (AWS_ACCESS_KEY vs AWS_ACCESS_KEY_ID).","solutions":["Export AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY before running setup.","Source your env file (e.g. `source ~/.env` or `export $(cat .env | xargs)`).","If intentionally relying on system config (~/.aws/credentials, SSO, or instance profile), verify that fallback actually works via `aws sts get-caller-identity`.","Correct variable-name typos in your shell profile or CI secret configuration."],"exampleFix":"// before: shell without credentials\nnpx task-master models --set-custom bedrock\n// after: export credentials first\nexport AWS_ACCESS_KEY_ID=AKIA...\nexport AWS_SECRET_ACCESS_KEY=...\nnpx task-master models --set-custom bedrock","handlingStrategy":"validation","validationCode":"if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {\n  throw new Error('Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY before configuring Bedrock.');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Export AWS credentials (or rely on a verified ~/.aws profile) before provider setup.","Source your env file in every new shell/CI job.","Verify credentials with `aws sts get-caller-identity` when using system-config fallback.","Double-check exact variable names (AWS_ACCESS_KEY_ID, not AWS_ACCESS_KEY)."],"tags":["aws","bedrock","environment","credentials","warning"],"backgroundTag":"missing-env-var","analyzedSha":"c0c98d367c55296bfe69e65680625b6db437af02","analyzedAt":"2026-08-29T02:56:26.071Z","schemaVersion":2},"datasetVersion":"2026-08-29T07:17:48.351Z"}