I am using AWS Systems Manager Session Manager to connect to my EC2 instance.
When I connect, the session does not source my .bashrc or .bash_profile, so I get a pretty plain shell and would like to setup some configuration when it starts.
The session manager connects me as the ec2-user but the shell starts in the / directory and not the user directory.
I am unable to figure out if it is sourcing any configuration files when it starts up.
How can I get it to source the users configuration files?
I have set up session manager to use the ec2-user by enabling the "run as support" setting.
If I connect to an instance using the EC2 instance connect then it works as you can see here:

However if I use the session manager, the configuration files are not sourced as you can see here:


