But posting something you just generated on HN without any refinement is not very helpful and it is obvious at a first glance that the script as posted will not help you at the task it tries to tackle and I'm not even a proper sysadmin.
> why does it matter how a script was generated if it does the job?
It doesn't here, and that's the point: it's all too easy to believe that ChatGPT does the job. It probably sometimes does, but here it is obvious it didn't. It should have told the user that they should carefully pick the tools they will likely need depending on what their production runs, learn to use them focusing on the features that matter to the situation, and install them the way their production is setup, and that ChatGPT can't really generate a script for this because it would need to know how production is deployed, and what if the prod is setup using immutable images for instance, as the article cites?
ChatGPT will answer in a convincing way, before you notice that no proper answer can really be found given the lack of context. And when you have the answer before your nose, it's even more difficult to notice.