terraform-google-cloud-operations
terraform-google-cloud-operations copied to clipboard
Could not setup log file, permission denied
Hello,
I got the following error while running terrform apply on agent-policy, https://github.com/terraform-google-modules/terraform-google-cloud-operations/tree/main/modules/agent-policy.
Any pointers what I should look into? All permission are satisfied based on the README.
with module.agent_policy.module.gcloud-destroy.null_resource.run_command[0],
on .terraform/modules/agent_policy.gcloud-destroy/main.tf line 232, in resource "null_resource" "run_command":
232: provisioner "local-exec" {
Error running command 'PATH=/google-cloud-sdk/bin:$PATH
gcloud info
': exit status 1. Output: WARNING: Could not setup log file in
/.config/gcloud/logs, (Error: Could not create directory
[/.config/gcloud/logs/2025.03.07]: Permission denied.
Appreciate any help one this.
-Laurent