Vault Agent Template doesn't render with message missing dependency: vault.write

I manage to solve this problem by changing the location of the certificate files from '/tmp' to '/opt/vault/certs' and it sorted the issue.