Home / Companies / OpsMill / Blog / Post Details
Content Deep Dive

An Introduction to Infrahub Transformations and Artifacts (With FAQs)

Blog post from OpsMill

Post Details
Company
Date Published
Author
Wim Van Deun
Word Count
1,707
Language
English
Hacker News Points
-
Summary

Infrahub Transformations and artifacts offer a comprehensive solution for automating data transformation and output generation from infrastructure data, essential for creating device configurations, exporting data for third-party tools, and generating reports. Transformations utilize GraphQL queries to extract infrastructure data, which is then processed and formatted using either Jinja2 templates for text-based outputs or Python code for structured data like JSON payloads. These Transformations are stored in Git repositories, enabling version control, testing, and collaboration, and they seamlessly integrate with Git workflows, allowing for development and production consistency. Artifacts, the outputs of Transformations, are cached and stored in Infrahub’s object storage, providing a complete history and enabling changes to be reviewed collaboratively before deployment. They support various formats, including JSON, YAML, and CSV, and automatically regenerate when source data changes, ensuring outputs reflect the current infrastructure state. Infrahub provides tools for testing and validating Transformations and artifacts, and offers various resources for users to get hands-on experience, including documentation, webinars, and a sandbox environment.