Discover Packages
github.com/joomcode/packer-plugin-external
command
module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: May 23, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
Packer external data source plugin
A plugin for Packer which provides access to external commands. Compatible with Packer >= 1.7.0
Usage
packer {
required_plugins {
external = {
version = ">= 0.0.2"
source = "github.com/joomcode/external"
}
}
}
data "external" "example" {
program = ["jq", "{ \"foo\": .key1 }"]
query = {
key1 = "val1"
}
}
data "external-raw" "example" {
program = ["rev"]
query = "hello"
}
locals {
external_result = data.external.example.result["foo"] # "val1"
raw_result = data.external-raw.example.result # "olleh\n"
}
See docs for more detailed information.
Running Acceptance Tests
make testacc
This will run the acceptance tests for all plugins in this set.
Requirements
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
datasource
Click to show internal directories.
Click to hide internal directories.