title: Chef Recipe to set hostname of an EC2 instance AWS
body: <p>I want to write a chef recipe that will set the hostname of the EC2 instance as :</p>
  
  <pre><code>AWSRegionInstanceTyperandomNo
  </code></pre>
  
  <p>like <code>awsedev001</code></p>
  
  <p>how can I do this in a chef recipe? Do we have any recipe for that ?</p>
  
  <p>Please help</p>