<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Setup on BMC</title><link>https://bmc.technative.cloud/setup/</link><description>Recent content in Setup on BMC</description><generator>Hugo</generator><language>en</language><atom:link href="https://bmc.technative.cloud/setup/index.xml" rel="self" type="application/rss+xml"/><item><title>Shell Integration</title><link>https://bmc.technative.cloud/setup/shell-integration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/setup/shell-integration/</guid><description>&lt;p>Shell integration is required for &lt;code>bmc profsel&lt;/code> to set &lt;code>AWS_PROFILE&lt;/code> in your current shell session.&lt;/p>
&lt;h2 id="install" class="relative group">Install &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#install" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>bmc install-shell-integration
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This installs a shell wrapper function:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>zsh / bash&lt;/strong>: appends to &lt;code>~/.zshrc&lt;/code> or &lt;code>~/.bashrc&lt;/code>&lt;/li>
&lt;li>&lt;strong>Fish&lt;/strong>: writes &lt;code>~/.config/fish/functions/bmc.fish&lt;/code> (auto-loaded, no restart needed)&lt;/li>
&lt;li>&lt;strong>NixOS + Fish&lt;/strong>: prints a &lt;code>programs.fish.functions&lt;/code> snippet instead of writing files&lt;/li>
&lt;/ul>
&lt;p>After installation, restart your shell or source the config file.&lt;/p></description></item><item><title>Configuration</title><link>https://bmc.technative.cloud/setup/configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/setup/configuration/</guid><description>&lt;p>BMC is configured via &lt;code>~/.config/bmc/config.json&lt;/code>.&lt;/p>
&lt;h2 id="example" class="relative group">Example &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#example" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-json" data-lang="json">&lt;span style="display:flex;">&lt;span>{
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;mfa&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;enabled&amp;#34;&lt;/span>: &lt;span style="color:#66d9ef">true&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;totp_script&amp;#34;&lt;/span>: &lt;span style="color:#e6db74">&amp;#34;/usr/bin/rbw get my-aws-mfa-entry --field totp&amp;#34;&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;copy_command&amp;#34;&lt;/span>: &lt;span style="color:#e6db74">&amp;#34;wl-copy&amp;#34;&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;paste_command&amp;#34;&lt;/span>: &lt;span style="color:#e6db74">&amp;#34;wl-paste | wtype -&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;ec2&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;auto_start_stopped&amp;#34;&lt;/span>: &lt;span style="color:#e6db74">&amp;#34;prompt&amp;#34;&lt;/span>,
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;columns&amp;#34;&lt;/span>: [&lt;span style="color:#e6db74">&amp;#34;InstanceId&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;Name&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;PrivateIP&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;PublicIP&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;State&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;Hibernate&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;Scheduler&amp;#34;&lt;/span>]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;console&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">&amp;#34;firefox_containers&amp;#34;&lt;/span>: &lt;span style="color:#66d9ef">true&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> }
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="reference" class="relative group">Reference &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#reference" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Key&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Default&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>mfa.enabled&lt;/code>&lt;/td>
 &lt;td>bool&lt;/td>
 &lt;td>&lt;code>false&lt;/code>&lt;/td>
 &lt;td>Enable MFA session management&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>mfa.totp_script&lt;/code>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>&lt;code>&amp;quot;&amp;quot;&lt;/code>&lt;/td>
 &lt;td>Shell command to generate a 6-digit TOTP code&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>mfa.copy_command&lt;/code>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>&lt;code>&amp;quot;&amp;quot;&lt;/code>&lt;/td>
 &lt;td>Command to copy TOTP to clipboard (receives code via stdin)&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>mfa.paste_command&lt;/code>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>&lt;code>&amp;quot;&amp;quot;&lt;/code>&lt;/td>
 &lt;td>Command to simulate paste keystroke 300ms after copy&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>ec2.auto_start_stopped&lt;/code>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>&lt;code>&amp;quot;prompt&amp;quot;&lt;/code>&lt;/td>
 &lt;td>&lt;code>always&lt;/code> / &lt;code>never&lt;/code> / &lt;code>prompt&lt;/code> — what to do when connecting to a stopped instance&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>ec2.columns&lt;/code>&lt;/td>
 &lt;td>[]string&lt;/td>
 &lt;td>all columns&lt;/td>
 &lt;td>Columns to show in EC2 tables, in order&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>console.firefox_containers&lt;/code>&lt;/td>
 &lt;td>bool&lt;/td>
 &lt;td>&lt;code>false&lt;/code>&lt;/td>
 &lt;td>Open AWS console in Firefox container tabs via the &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/granted/" target="_blank" rel="noreferrer">Granted&lt;/a> extension&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>console.chrome_profiles&lt;/code>&lt;/td>
 &lt;td>bool&lt;/td>
 &lt;td>&lt;code>false&lt;/code>&lt;/td>
 &lt;td>Open AWS console in isolated Chrome profiles per AWS account&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>console.chrome_binary&lt;/code>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>&lt;code>&amp;quot;google-chrome&amp;quot;&lt;/code>&lt;/td>
 &lt;td>Chrome binary to use (&lt;code>&amp;quot;chromium&amp;quot;&lt;/code>, &lt;code>&amp;quot;brave-browser&amp;quot;&lt;/code>, etc.)&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="ec2-columns" class="relative group">EC2 columns &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#ec2-columns" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;p>The &lt;code>ec2.columns&lt;/code> field controls which columns appear in EC2 instance tables and in what order. Available values:&lt;/p></description></item><item><title>MFA</title><link>https://bmc.technative.cloud/setup/mfa/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://bmc.technative.cloud/setup/mfa/</guid><description>&lt;p>BMC handles MFA automatically. When you run &lt;code>bmc profsel&lt;/code> or &lt;code>bmc console&lt;/code>, BMC checks if your session credentials are still valid and refreshes them if needed — no separate command required.&lt;/p>
&lt;h2 id="requirements" class="relative group">Requirements &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100">&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#requirements" aria-label="Anchor">#&lt;/a>&lt;/span>&lt;/h2>&lt;ol>
&lt;li>Set &lt;code>mfa.enabled = true&lt;/code> in &lt;code>~/.config/bmc/config.json&lt;/code>&lt;/li>
&lt;li>Add a &lt;code>[profile-long-term]&lt;/code> section to &lt;code>~/.aws/credentials&lt;/code>:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-ini" data-lang="ini">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">[technative-long-term]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#a6e22e">aws_access_key_id&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#e6db74">AKIA...&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#a6e22e">aws_secret_access_key&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#e6db74">...&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#a6e22e">aws_mfa_device&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#e6db74">arn:aws:iam::123456789012:mfa/your-username&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>When the session expires, BMC prompts for a 6-digit TOTP code. If &lt;code>totp_script&lt;/code> is configured, BMC runs it automatically to fetch the code.&lt;/p></description></item></channel></rss>