I am executing the code of terraform , in that i have pgp in my home directory but
it showing no such file or directory , actually file is present in that location . im getting below error
Error: Read local file data source error
│
│ with data.local_file.d-path,
│ on main.tf line 90, in data “local_file” “d-path”:
│ 90: data “local_file” “d-path” {
│
│ The file at given path cannot be read.
│
│ +Original Error: open /home/azureuser/new_test.pgp: no such file or directory
My code is
data “local_file” “d-path” {
filename = “${var.pgp-key-path}”
}
resource “azurerm_storage_blob” “volume_key_blob” {
name = data.local_file.d-path.filename
storage_account_name = azurerm_storage_account.volume_storage.name