我正在尝试在另一个文件夹的代码中访问或调用 CSV 文件,但是当我在 terraform 中设置显示错误的路径时
以下是 terraform 代码,其中设置文件模块的路径是文件夹,其中 a 是另一个文件夹,之后文件名为 test.CSV
locals {
group_names = csvdecode(file("/modules/a/test.csv"))
}
Error: Error in function call
on VPN_Gateway\VPN_Gateway.tf line 7, in locals:
7: group_names = csvdecode(file("modules/a/test.csv"))
Call to function "file" failed: no file exists at modules\a\test.csv