by nprateem · 3y ago · 0 comments
> Me: how to only run data "archive_file" if a path exists?
> GPT4: <blah blah blah> add: depends_on = [fileexists("/path/to/file")]
This is nonsense. Terraform tells me:
> A single static variable reference is required: only attribute access and indexing with constant keys. No calculations, function calls, template expressions, etc are allowed here
I just get this rubbish all too often to be afraid for my job.
No comments yet.