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回答
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ