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 年前266 查看次数
1 回答
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则