Due to the implementation of SSM 'shell' connections with ssm-user account in AWS, they formally run /bin/sh as shell, but do not execute either ~/.profile or /etc/profile when a shell session is started.
A question: how could I predefine shell variables so they get correct values in all future processes started by ssm-user, both via new SSM shell connection, and started by other local processes like crontab?
I use stock AWS macOS 12.x instances, if this matters.