Earlier quoted context omitted.
I use ChatGPT to help me quickly write simple AWS SDK based helper scripts. I’ve also recently been involved in designing a DevOps /Docker deployment pipeline for a customer. They use Java and I haven’t used Java in decades. Before I would have just done my POC using a Python or Node container and rely on the fact that they knew Java well enough to get the concepts. But I used Java and started the chain of questions…
Watch out, I'm doing devops too and I've caught chatgpt on such obviously stupid behaviors it hurts to even think about it. It's not just hallucinations problem (edge cases or doing unusual stuff). It seems to give answers that are 100% incorrect and when told so says "of course you're right, here is the right answer". The only stuff I'd use it for is if I already know exactly how to write the script and I'm just usi…
But with code, it’s easy enough to prove correctness just by running it.
That being said, the one bug I find consistently with ChatGPT is that with the AWS APIs, all list type methods pagínate and you have to account for that. Python/boto3 have built in paginators and it doesn’t.
This an insidious bug because things will work correctly in a dev account with only few resources. But will fail in hard to debug ways in production.
What’s even worse is that ChatGPT “knows” the pattern and will correct itself once you say something like
“This won’t work with more than 50 roles/ec2 instances, etc”