If you configure any environment with a collection of linux commands in 2026, you've failed.
Any infrastructure should be defined in auditable code, be reviewable, replayable and if it fails, you start again.
It's the only safe way to do it nowadays. Don't compromise.