Getting an Environment Variable in Terraform configuration?

后端 未结 4 1552
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 02:09

I have two environment variables. One is TF_VAR_UN and another is TF_VAR_PW. Then I have a terraform file that looks like this.

res         


        
4条回答
  •  情歌与酒
    2020-12-31 02:20

    in order to use a variable it needs to be wrapped with "" for example:

    username = "${var.UN}"

提交回复
热议问题