0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【GCP】環境変数の設定方法について

Posted at

#GCPで環境変数を使用するシチュエーション
・プロジェクトIDを環境変数に格納し管理しやすくする(打ち間違いを防ぐことも)

#設定方法

export environmentVariable=格納したい値

(例)

export environmentVariable=projectID1234567890

#確認方法
確認はechoコマンドで確認可能
変数名の前に**$を付けること**に注意。

echo $environmentVariable

出力結果

projectID1234567890
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?