add basic HCL2 docs for file builder

This commit is contained in:
Adrien Delorme 2020-06-16 17:05:02 +02:00
parent c3f2cc64f7
commit 6513372a01
1 changed files with 21 additions and 0 deletions

View File

@ -21,6 +21,9 @@ wait times.
Below is a fully functioning example. It create a file at `target` with the
specified `content`.
<Tabs>
<Tab heading="JSON">
```json
{
"type": "file",
@ -29,6 +32,24 @@ specified `content`.
}
```
</Tab>
<Tab heading="HCL2">
```hcl
source "file" "basic-example" {
content = "Lorem ipsum dolor sit amet"
target = "dummy_artifact"
}
build {
sources = ["sources.file.basic-example"]
}
```
</Tab>
</Tabs>
## Configuration Reference
Configuration options are organized below into two categories: required and