Skip to content

Files

Latest commit

 

History

History
68 lines (43 loc) · 1.44 KB

datasource.mdx

File metadata and controls

68 lines (43 loc) · 1.44 KB

Type: scaffolding

The scaffolding data source is used to create endless Packer plugins using a consistent plugin structure.

Required

  • mock (string) - The name of the mock to use for the Scaffolding API.

Optional

  • mock_api_url (string) - The Scaffolding API endpoint to connect to. Defaults to https://example.com

OutPut

  • foo (string) - The Scaffolding output foo value.
  • bar (string) - The Scaffolding output bar value.

Example Usage

data "scaffolding" "example" {
   mock = "bird"
 }
 source "scaffolding" "example" {
   mock = data.scaffolding.example.foo
 }

 build {
   sources = ["source.scaffolding.example"]
 }