Skip to main content

Local Provider

Manage local files, directories, and sensitive files with Pulumi
1 min read

The Local provider enables you to manage local filesystem resources like files, sensitive files, and command execution using Pulumi. This provider is dynamically bridged from the Terraform Local Provider.

Installation#

Install the Local provider package using your preferred package manager:

Configuration#

No configuration required - the Local provider works out of the box with your local filesystem.

Quick Start#

Key Features#

File Management#

Create and manage local files with specific content and permissions:

Sensitive Files#

Handle files containing sensitive data with restricted permissions:

Read Existing Files#

Read the content of existing files as data sources:

Execute Commands#

Run local commands and capture their output:

Common Use Cases#

Generate Configuration Files#

Write Deployment Artifacts#

Store Sensitive Credentials#

Resource Types#

ResourceDescription
FileCreate and manage local files
SensitiveFileCreate files with sensitive content and restricted permissions

Data Sources#

Data SourceDescription
getFileRead content of an existing local file
getSensitiveFileRead content of an existing sensitive file
getCommandExecute a local command and capture output

Getting Help#