Interesting use of GPT; it's cool that it works as well as it does but I'd be nervous about the various insidious ways it can fail.
On another note, are there tools that will scan your AWS/GCP logs and emit configuration to limit permissions to what you're actually using? I could even see GPT doing better here too, or at least it would be easier to test.