How to export the variable when connecting via session manager connect

0

Hi Team,

How to export the variable when connecting via session manager connect for linux OS. I tried adding to the bashrc, /etc/environment, and /etc/profile did not work.

1 Answer
0

You can use Allow configurable shell profiles - https://docs.aws.amazon.com/systems-manager/latest/userguide/session-preferences-shell-config.html

You can either set variables directly under Linux shell profile, or you can create a script on the EC2 instance to set the variables and add a step to invoke that script in configurable shell profile.

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions