<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Von Peñaloza</title>
    <description>The latest articles on DEV Community by Von Peñaloza (@webshinobi).</description>
    <link>https://dev.to/webshinobi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F720895%2F5f0c0fc2-6e14-48f5-990f-ec22ab3d51eb.png</url>
      <title>DEV Community: Von Peñaloza</title>
      <link>https://dev.to/webshinobi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/webshinobi"/>
    <language>en</language>
    <item>
      <title>AWS CLI Result TO Excel (AWS Resource Inventory)</title>
      <dc:creator>Von Peñaloza</dc:creator>
      <pubDate>Wed, 17 Aug 2022 05:43:00 +0000</pubDate>
      <link>https://dev.to/webshinobi/aws-resource-inventory-json-to-excel-20fc</link>
      <guid>https://dev.to/webshinobi/aws-resource-inventory-json-to-excel-20fc</guid>
      <description>&lt;p&gt;Sharing this tutorial on how can we easily convert the &lt;code&gt;aws cli&lt;/code&gt; JSON response to a more presentable format.&lt;/p&gt;

&lt;h2&gt;
  
  
  AWS CLI Response To JSON file
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Login to your &lt;strong&gt;AWS account&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;cloudshell&lt;/strong&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--33-2AZ6s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2maypjb1v329zvhsf722.png" alt="Image description" width="880" height="135"&gt;
&lt;/li&gt;
&lt;li&gt;Run the aws command line list ec2 instances and save the result to a json file by running the following command:
&lt;code&gt;aws cli ec2 describe-instances &amp;gt; list-instances.json&lt;/code&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4KewRZpV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u9wt5jmqv3cjblizl6wn.png" alt="Image description" width="578" height="294"&gt;
&lt;/li&gt;
&lt;li&gt;Make sure that a file named &lt;code&gt;list-instances.json&lt;/code&gt; was created by running a simple linux command &lt;code&gt;ls&lt;/code&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hFIrIw29--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ievtppol27e825oyhdhd.png" alt="Image description" width="578" height="294"&gt;
&lt;/li&gt;
&lt;li&gt;Download the created file from &lt;strong&gt;cloudshell&lt;/strong&gt; to your &lt;strong&gt;local machine&lt;/strong&gt;. On the upper right of &lt;strong&gt;cloudshell&lt;/strong&gt; click &lt;strong&gt;Actions&lt;/strong&gt; then click &lt;strong&gt;Download file&lt;/strong&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qChHCuSt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cxmx5ix1onxleayryt6z.png" alt="Image description" width="578" height="294"&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;dialog box&lt;/strong&gt; will pop up asking for the path of the file. Since the file was created in the user home directory, you can simply put the filename. Then click &lt;strong&gt;Download&lt;/strong&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jSV46VUo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ktoff5v2zj063rhsjy89.png" alt="Image description" width="777" height="490"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Converting JSON Response To Excel (Office 2021)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open Microsoft Excel. &lt;/li&gt;
&lt;li&gt;Create a blank workbook.&lt;/li&gt;
&lt;li&gt;Click &lt;code&gt;Data&lt;/code&gt; &amp;gt; &lt;code&gt;New Query&lt;/code&gt; &amp;gt; &lt;code&gt;From Other Sources&lt;/code&gt; &amp;gt; &lt;code&gt;From Web&lt;/code&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bhNk1Fb1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hoa1jjo12hjfrsnlm8fv.png" alt="Image description" width="845" height="472"&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;dialog&lt;/code&gt; box will popup and put the absolute path or the location of the download json file.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FCRar1V5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zn6wm7pknqrdofz3ii8y.png" alt="Image description" width="737" height="310"&gt;
&lt;/li&gt;
&lt;li&gt;Next, it will now open a new &lt;strong&gt;excel&lt;/strong&gt; window and click &lt;strong&gt;Into Table Convert&lt;/strong&gt;.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--boSkqlIf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dvk7unjpnbjtf6td15ac.png" alt="Image description" width="847" height="237"&gt;
&lt;/li&gt;
&lt;li&gt;Next, expand all the value of the columns to a new rows.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--c6ZSB5YK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pnsg5tcsnptomptocy36.png" alt="Image description" width="717" height="313"&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sDZWnYrU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0tq0zgtmg65crnradnag.png" alt="Image description" width="717" height="313"&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the action by clicking &lt;strong&gt;Insert&lt;/strong&gt; button.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4o4UJx1F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j2usafrlauwjuuoi9yxv.png" alt="Image description" width="880" height="470"&gt;
&lt;/li&gt;
&lt;li&gt;This action will now expand the &lt;strong&gt;value&lt;/strong&gt; of the list from &lt;strong&gt;step 6&lt;/strong&gt; of this section.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rRH_1ww7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0c76tsbaidircplpl2v2.png" alt="Image description" width="690" height="755"&gt;
&lt;/li&gt;
&lt;li&gt;Expands all the &lt;code&gt;Record&lt;/code&gt; / &lt;code&gt;List&lt;/code&gt; by repeating &lt;strong&gt;steps 6&lt;/strong&gt;
and &lt;strong&gt;7&lt;/strong&gt; of this section.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ok6erC2A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/242dwcaivifdoegovqn2.png" alt="Image description" width="690" height="974"&gt;
&lt;/li&gt;
&lt;li&gt;Now this is the most repetitive part of this tutorial, you need to expand all the values of each column with a &lt;strong&gt;list&lt;/strong&gt; as value. Repeat &lt;strong&gt;steps 6&lt;/strong&gt; and &lt;strong&gt;7&lt;/strong&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--I4Un8VDB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ler665bys0lomgncmnfu.png" alt="Image description" width="880" height="562"&gt;
&lt;/li&gt;
&lt;li&gt;Once all the values has been expanded, you can now click the &lt;code&gt;Close and Load&lt;/code&gt; button on the upper left of the window to load this in a workbook.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B8KJie4O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/67vxa2587uzqubj6e84s.png" alt="Image description" width="502" height="638"&gt;
&lt;/li&gt;
&lt;li&gt;And your data may be look like this.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lvpCJ5-3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p6rbmpmziyfbr76u6zrt.png" alt="Image description" width="880" height="594"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  There you have it! You have a report! :)
&lt;/h1&gt;

</description>
      <category>aws</category>
      <category>productivity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
