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#
| Resource | Description |
|---|---|
| File | Create and manage local files |
| SensitiveFile | Create files with sensitive content and restricted permissions |
Data Sources#
| Data Source | Description |
|---|---|
| getFile | Read content of an existing local file |
| getSensitiveFile | Read content of an existing sensitive file |
| getCommand | Execute a local command and capture output |