<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0"><channel><title>Pulumi Blog: Kyle Pitzen</title><link>https://www.pulumi.com/blog/author/kyle-pitzen/</link><description>Pulumi blog posts: Kyle Pitzen.</description><language>en-us</language><pubDate>Wed, 13 Sep 2023 10:00:00 -0800</pubDate><item><title>Pulumi Insights and AI in the Pulumi CLI</title><link>https://www.pulumi.com/blog/pulumi-insights-ai-cli/</link><pubDate>Wed, 13 Sep 2023 10:00:00 -0800</pubDate><guid>https://www.pulumi.com/blog/pulumi-insights-ai-cli/</guid><description>
&lt;img src="https://www.pulumi.com/images/generated/blog/pulumi-insights-ai-cli/index.png" /&gt;
&lt;p&gt;Earlier this year we introduced &lt;a href="https://www.pulumi.com/blog/pulumi-insights/"&gt;Pulumi Insights&lt;/a&gt;, a collection of features that bring intelligence to cloud infrastructure using Pulumi. Two key components of that launch were &lt;a href="https://www.pulumi.com/blog/pulumi-ai/"&gt;Pulumi AI&lt;/a&gt;, a generative AI assistant purpose-built to create cloud infrastructure using natural language, and &lt;a href="https://www.pulumi.com/blog/resource-search/"&gt;Pulumi Resource Search&lt;/a&gt;, multi-cloud search and analytics across every cloud resource and environment in your organization.&lt;/p&gt;
&lt;p&gt;Today, we are excited to bring Pulumi Insights into the &lt;code&gt;pulumi&lt;/code&gt; CLI with the new &lt;code&gt;pulumi org search&lt;/code&gt; and &lt;code&gt;pulumi ai&lt;/code&gt; commands. These commands put AI and resource search at your finger tips right where Pulumi users spend most of their time, in the terminal iterating on their cloud infrastructure.&lt;/p&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/oxpT4Lh64xs?rel=0?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;p&gt;This release is the latest of a long list of improvements and enhancement to Pulumi Insights over the last few months, including &lt;a href="https://www.pulumi.com/blog/ai-assist-improvements/"&gt;AI Assist for resource search&lt;/a&gt;, &lt;a href="https://www.pulumi.com/blog/property-search/"&gt;fine-grained resource property search&lt;/a&gt;, and &lt;a href="https://www.pulumi.com/blog/leveling-up-pulumi-ai-with-the-pulumi-registry/"&gt;registry support in Pulumi AI&lt;/a&gt;. We&amp;rsquo;ve seen incredible adoption and usage of all of these features over the last few months, and they are now easier than ever to access via the &lt;code&gt;pulumi&lt;/code&gt; CLI.&lt;/p&gt;
&lt;h2 id="pulumi-resource-search-in-the-cli"&gt;Pulumi Resource Search in the CLI&lt;/h2&gt;
&lt;p&gt;With the new &lt;code&gt;pulumi org search&lt;/code&gt; command, you can search across all of the infrastructure managed by your organization (or individual account) using the same rich search syntax supported by Pulumi Resource Search in the Pulumi Console.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pulumi org search -q &lt;span class="s2"&gt;&amp;#34;type:aws:kinesis/stream:Stream modified:&amp;gt;=09/01/2023&amp;#34;&lt;/span&gt; --org my-org
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img src="https://www.pulumi.com/blog/pulumi-insights-ai-cli/orgsearch.png" alt="org search"&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;rsquo;t know the exact search syntax for what you want to ask, you can use AI Assist, which was &lt;a href="https://www.pulumi.com/blog/ai-assist-improvements/"&gt;recently opened up&lt;/a&gt; to all Pulumi organizations. Just use &lt;code&gt;pulumi org search ai&lt;/code&gt; instead!&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pulumi org search ai -q &lt;span class="s2"&gt;&amp;#34;all Kinesis streams modified since September 1st 2023&amp;#34;&lt;/span&gt; --org my-org
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Notice that AI Assist comes up with the same query and runs it to get the same results we saw above.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://www.pulumi.com/blog/pulumi-insights-ai-cli/orgsearchai.png" alt="org search ai"&gt;&lt;/p&gt;
&lt;p&gt;These queries can also include complex logic which relies on looking at properties of resources, such as their tags. For example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pulumi org search ai -q &lt;span class="s2"&gt;&amp;#34;All untagged lambda functions with memory &amp;gt; 2 GB&amp;#34;&lt;/span&gt; --org my-org
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;AI Assist determines it should run the query &lt;code&gt;type:&amp;quot;aws:lambda:Function&amp;quot; .memorySize:&amp;gt;2048 -.tags:&lt;/code&gt; and shows the results of that query:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://www.pulumi.com/blog/pulumi-insights-ai-cli/orgsearchaiproperties.png" alt="org search ai"&gt;&lt;/p&gt;
&lt;p&gt;The combination of rich query syntax, AI Assist and property search makes it easy and exciting to interactively find the information you are looking for about resources in your stack.&lt;/p&gt;
&lt;p&gt;And of course, you can jump straight into the console to drill down even further into your data.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://www.pulumi.com/blog/pulumi-insights-ai-cli/consolesearch.png" alt="org search ai"&gt;&lt;/p&gt;
&lt;h2 id="pulumi-ai-in-the-cli"&gt;Pulumi AI in the CLI&lt;/h2&gt;
&lt;p&gt;We&amp;rsquo;ve also taken our first step towards integrating Pulumi AI into the CLI. With the &lt;code&gt;pulumi ai web&lt;/code&gt; command, you can type a query in the CLI and have it launch a question into a browser window.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pulumi ai web &lt;span class="s2"&gt;&amp;#34;deploy metabase on AWS with a managed postgres database&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This opens a browser to a guided Pulumi AI conversation that walks through all the steps required to accomplish this task.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://www.pulumi.com/uploads/content/blog/pulumi-insights-ai-cli/pulumiaiweb.gif" alt="pulumi ai"&gt;&lt;/p&gt;
&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;With these new CLI commands, Pulumi Insights is available at your fingertips in the &lt;code&gt;pulumi&lt;/code&gt; CLI. These are just the first steps to bring search and AI into the CLI, expect to see much more in the coming months. To learn more about the various Pulumi Insights features discussed here, check out the resources below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.pulumi.com/docs/pulumi-cloud/insights/"&gt;Pulumi Insights&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.pulumi.com/ai"&gt;Pulumi AI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.pulumi.com/docs/iac/cli/commands/"&gt;Pulumi CLI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><author>Luke Hoban</author><author>Kyle Pitzen</author><category>features</category><category>ai</category><category>insights</category></item></channel></rss>