I sometimes wonder if some folks who hate AI use it poorly to show that it "fails half the time".
The AI has access to roughly the same resources as you - if you can't find docs or anything then it doesn't either. So yeah - for incompletely documented APIs it will perform poorly. It isn't magic (despite some marketing claims)...
But if you don't want to spend 20 mins digging through AWS's API docs to figure out how to list all EC2 instances and their volume mounts to tally disk usage or something it will produce workable code very quickly.