Skip to main content
This guide demonstrates how to use the Infisical Packer plugin to fetch secret data using a data source. The Packer plugin supports both Infisical Cloud and self-hosted instances of Infisical.

Prerequisites

Before you begin, make sure you have:
  • Packer installed
  • An Infisical account with access to a project
  • Basic understanding of Packer

Project Setup

Configure Provider

First, specify the Infisical provider in your Packer configuration:

Authentication

Using a Machine Identity, you can authenticate with Universal Auth.
Learn more about machine identities.

Using Secrets in Packer

You’re able to fetch secrets from Infisical using the infisical-secrets Data Source:
The local.secrets object maps secret keys to secret objects. See also: