Skip to content

Updated artifact.mdx to fix #54 #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/docs/guides/artifact.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ Add the following contents to the end of the `.infrahub.yml` file at the root of

```yaml
artifact_definitions:
- name: "device_configuration"
artifact_name: "Device configuration file"
- name: "Device configuration file"
artifact_name: "device_configuration"
parameters:
name: "name__value"
content_type: "text/plain"
Expand All @@ -82,7 +82,8 @@ artifact_definitions:

This defines an artifact with the following properties:

- **name**: a unique name for the artifact
- **name**: a descriptive name for the artifact definition
- **artifact_name**: a unique name for the artifact (no spaces)
- **parameters**: the parameter to pass to the transformation GraphQL query, in this case this we will pass the name of the object (device) as the name parameter
- **content type**: the content type for the resulting artifact
- **targets**: the name of a group of which the members will be a target for this artifact
Expand Down