Vault approle in Packer?

Hi all,
I try to use Hashicorp Vault with Packer.
The “token way” work fine.

But we need the “approle” way (for security purpose).
Is this method implemented ? is there any example ? see no example in documentation.

thank’s in advance :wink:

The approle authentication method authenticates to Vault, which issues it a token scoped to that role. You could just use that as the VAULT_TOKEN during the execution of Packer.

If you’re running Packer on a machine or in an environment with vault-agent authenticating with an Approle, you can configure where the token is written to via the sink.

Can you give some more context of how you’re running Packer? How do you get your vault token right now?