I feel your pain,
I try to mitigate this as much as possible with templating projects. I use https://gitlab.com/reedrichards/cookiecutter-goapp for small webservers and this generates the infra i need for aws, and go has been a relatively simple development and packaging platform for me.
I am also working at https://brev.dev and have been using their product at work and on personal projects to help standardize my development environment well. I often found myself at other companies constantly fire fighting developer environments falling into entropy and wishing for something like this so we can not having to worry about the different configurations of N developers * M machines.
*edited to make link clickable