<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Preparing infrastructure for consumers on InfraBuffet User Guide</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/</link><description>Recent content in Preparing infrastructure for consumers on InfraBuffet User Guide</description><generator>Hugo</generator><language>en</language><atom:link href="https://infrabuffet.pages.dev/guide/preparing-infrastructure/index.xml" rel="self" type="application/rss+xml"/><item><title>Infrastructures</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/infrastructures/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/infrastructures/</guid><description>&lt;h1 id="infrastructures"&gt;Infrastructures&lt;a class="anchor" href="#infrastructures" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;An infrastructure groups provider types, configured providers, block templates, and scopes under one owning team.&#10;Each scope has its own Terraform state; the infrastructure supplies the shared configuration.&lt;/p&gt;&#10;&lt;h2 id="create-an-infrastructure"&gt;Create an infrastructure&lt;a class="anchor" href="#create-an-infrastructure" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Open &lt;strong&gt;Provide&lt;/strong&gt;, create an infrastructure, and choose its owning team. Your team must have permission to create&#10;infrastructures; a superuser can manage this setting. Membership in the owning team grants owner access.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Display name, 1–255 characters.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Description&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional explanation of the infrastructure&amp;rsquo;s purpose.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Type&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;terraform&lt;/code&gt; for Terraform or &lt;code&gt;opentofu&lt;/code&gt; for OpenTofu.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Executable&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Normalized absolute POSIX path, such as &lt;code&gt;/usr/bin/terraform&lt;/code&gt; or &lt;code&gt;/usr/bin/tofu&lt;/code&gt;.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Deduplicator length&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Scope deduplicators must have exactly this many characters; allowed length is 1–5.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;See &lt;a href="https://infrabuffet.pages.dev/guide/advanced/deduplicators/"&gt;deduplicators&lt;/a&gt; for how modules avoid resource-name collisions.&lt;/p&gt;</description></item><item><title>Data sources</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/data-sources/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/data-sources/</guid><description>&lt;h1 id="data-sources-and-files"&gt;Data sources and files&lt;a class="anchor" href="#data-sources-and-files" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A data source stores the module and validator files used by block templates. It belongs to a team. Templates can use&#10;module and validator files from different data sources, but they must belong to the infrastructure&amp;rsquo;s owning team.&lt;/p&gt;&#10;&lt;p&gt;The two source types are &lt;strong&gt;Local&lt;/strong&gt;, whose files you edit in InfraBuffet, and &lt;strong&gt;Git&lt;/strong&gt;, whose files are imported from a&#10;repository. Jobs use the stored files; a Git commit does not affect a job until the source is synchronized.&lt;/p&gt;</description></item><item><title>Provider types and providers</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/providers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/providers/</guid><description>&lt;h1 id="provider-types-and-providers"&gt;Provider types and providers&lt;a class="anchor" href="#provider-types-and-providers" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A &lt;strong&gt;provider type&lt;/strong&gt; identifies a Terraform provider plugin and its configuration schema. A &lt;strong&gt;provider&lt;/strong&gt; supplies&#10;configuration values for one instance of that type. Both belong to an infrastructure. For example, one &lt;code&gt;aws&lt;/code&gt; provider&#10;type can have separate configured providers for different accounts or regions.&lt;/p&gt;&#10;&lt;h2 id="create-and-synchronize-a-provider-type"&gt;Create and synchronize a provider type&lt;a class="anchor" href="#create-and-synchronize-a-provider-type" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;On the infrastructure, create a provider type with these settings:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Example&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;random&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Terraform local provider name used by modules.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Link&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;hashicorp/random&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Terraform provider source address.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Version&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;3.6.3&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Provider version used during initialization.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Secret overrides&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;/token&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional non-root JSON Pointers marking configuration values as secrets.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Names start with a lowercase letter and contain only lowercase letters, digits, and hyphens, up to 255 characters.&#10;Use a concrete version; the version field accepts letters, digits, &lt;code&gt;_&lt;/code&gt;, &lt;code&gt;.&lt;/code&gt;, and &lt;code&gt;-&lt;/code&gt;, not version constraint syntax&#10;such as &lt;code&gt;&amp;gt;= 3.0&lt;/code&gt;. The source cannot contain spaces.&lt;/p&gt;</description></item><item><title>Scopes and access grants</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/scopes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/scopes/</guid><description>&lt;h1 id="scopes-and-access-grants"&gt;Scopes and access grants&lt;a class="anchor" href="#scopes-and-access-grants" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A scope belongs to one infrastructure, contains blocks, and keeps a separate Terraform state. It can be granted to&#10;one consumer team. The infrastructure&amp;rsquo;s owning team continues to manage the scope and can also use its blocks.&lt;/p&gt;&#10;&lt;h2 id="create-a-scope"&gt;Create a scope&lt;a class="anchor" href="#create-a-scope" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Open the infrastructure&amp;rsquo;s scopes and create a scope with:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1–255 characters; starts with a letter or &lt;code&gt;_&lt;/code&gt;, then letters, digits, &lt;code&gt;_&lt;/code&gt;, or &lt;code&gt;-&lt;/code&gt;.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Deduplicator&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Exactly the number of characters configured on the infrastructure.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Granted to&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional consumer team. Without a grant, consumers receive no access through this scope.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Default provider&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional configured provider belonging to the same infrastructure.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;A deduplicator must be unique among the infrastructure&amp;rsquo;s scopes.&#10;Modules can include it in resource names to avoid collisions between scopes. See&#10;&lt;a href="https://infrabuffet.pages.dev/guide/advanced/deduplicators/"&gt;deduplicators&lt;/a&gt; for the fields involved and a complete example.&lt;/p&gt;</description></item><item><title>Block templates and modules</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/block-templates/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/block-templates/</guid><description>&lt;h1 id="block-templates"&gt;Block templates&lt;a class="anchor" href="#block-templates" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;A block template combines a Terraform module, a form schema, and optional JavaScript validation. It belongs to an&#10;infrastructure and is available to that infrastructure&amp;rsquo;s scopes. Each block is an instance of one template.&lt;/p&gt;&#10;&lt;h2 id="create-a-template"&gt;Create a template&lt;a class="anchor" href="#create-a-template" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;On the infrastructure, create a block template and configure:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Setting&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Meaning&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Name&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;1–100 characters; starts with a letter or &lt;code&gt;_&lt;/code&gt;, then letters, digits, or &lt;code&gt;_&lt;/code&gt;.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;IaC data source&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Source owned by the infrastructure&amp;rsquo;s owning team.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;IaC path&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Module directory relative to the source, or &lt;code&gt;.&lt;/code&gt; for its root.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Form fields&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Array describing the block form and module inputs.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Validator&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Optional JavaScript file and user context.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;For example, choose &lt;code&gt;platform-modules&lt;/code&gt;, module path &lt;code&gt;modules/network&lt;/code&gt;, and name &lt;code&gt;network&lt;/code&gt;. Paths must remain inside&#10;the source. Saving a template does not initialize or plan its Terraform module, so a correct-looking template can&#10;still fail when a consumer calculates a diff.&lt;/p&gt;</description></item><item><title>Form field reference</title><link>https://infrabuffet.pages.dev/guide/preparing-infrastructure/form-fields/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://infrabuffet.pages.dev/guide/preparing-infrastructure/form-fields/</guid><description>&lt;h1 id="form-fields-reference"&gt;Form fields reference&lt;a class="anchor" href="#form-fields-reference" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Form fields define what consumers see when they create or edit a block: text inputs, choices, numbers, and selectors&#10;for providers or other blocks. Configure them in the &lt;strong&gt;Form fields&lt;/strong&gt; section when creating or editing a block template.&lt;/p&gt;&#10;&lt;p&gt;Choose &lt;strong&gt;Add field&lt;/strong&gt;, set its &lt;strong&gt;Name&lt;/strong&gt;, &lt;strong&gt;Type&lt;/strong&gt;, and &lt;strong&gt;Mode&lt;/strong&gt;, then fill in the options for that type. Use&#10;&lt;strong&gt;Add another field&lt;/strong&gt; for more inputs and the arrow buttons to change their order in the block form.&lt;/p&gt;</description></item></channel></rss>