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 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen