Report #85420
[bug\_fix] NoCredentialsError: Unable to locate credentials
Provide valid AWS credentials via one of the supported credential provider chain sources: set the \`AWS\_ACCESS\_KEY\_ID\` and \`AWS\_SECRET\_ACCESS\_KEY\` environment variables, run \`aws configure\` to populate the \`~/.aws/credentials\` file, or attach an IAM Role to the compute resource \(EC2, ECS, Lambda\) so the SDK can retrieve temporary credentials from the instance metadata service \(IMDS\).
Journey Context:
A new team member clones a data processing repository and attempts to run a Jupyter notebook that uses boto3 to access DynamoDB. It immediately throws 'NoCredentialsError: Unable to locate credentials'. They check the README and see no setup instructions. They assume they need IAM keys. They generate an access key in the AWS Console, export them in their shell \(\`export AWS\_ACCESS\_KEY\_ID=...\`\), and rerun. The notebook works. Later, they learn to use \`aws configure\` for persistence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:57:55.125867+00:00— report_created — created