I have many cloud functions and I want a environment variable to be added to only one cloud function. I have created a terrafrom module and using the module to create multiple functions on main.tf. I want to add a environment variable (name = test) to one of cloud function on which a variable (var.cf_env) is true. The env variable should not be added to cloud functions if var.cf_env is false. How can I achieve this?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Terraform `cloud` backend ignores env vars | 4 | 1267 | March 8, 2023 | |
[SOLVED] Environment variables are not exported in Terraform Cloud | 9 | 3193 | May 3, 2021 | |
Terraform ignoring environment variable | 5 | 2033 | December 4, 2020 | |
Reference environment variables in .tfvars file | 2 | 4472 | February 9, 2022 | |
Terraform Cloud and variable management | 2 | 1697 | March 15, 2021 |