Adrien Delorme beceb90844 better docs
2020-05-28 16:22:07 +02:00

30 lines
624 B
Plaintext

---
description: >
Something
Something
layout: docs
page_title: source - build - Blocks
sidebar_title: <tt>source</tt>
---
# The `source` block
`@include 'from-1.5/beta-hcl2-note.mdx'`
A `source` block nested in a `build` block allows to use an already defined
source and to set specific fields.
```hcl
# builds.pkr.hcl
build {
source "amazon-ebs.example" {
output = "specific-value"
}
# ...
}
```
-> **Note:** If any top-level attribute is re-defined with the same name an
error will be displayed. For example: you cannot define the `output` field in
the source declaration **and** in the source usage.