Re:Why do small teams keep getting wrecked by AWS bills?
by DeborahEmeni_ on Thursday April 24, 2025 @05:13AM
(#43780664)
yep this is the one. feels like a lot of people just copy-paste from stackoverflow without realizing they're hardcoding keys. have you seen this cause issues in prod or mostly in hobby stuff?
For instance, the correct way to initialize the s3 client in Python is
The SDK will automatically get the credentials that are configured locally within your environment or the IAM role attached to your Lambda, EC2 instance, Docker (ECS, EKS) container runner etc.Your access keys never need to be part of your repository.