title: what to do when prompted for ec2-user password?
body: <p>I'm trying to run </p>
  
  <pre><code>sudo -u postgres psql -d template1 -U postgres -p
  </code></pre>
  
  <p>on an 'Amazon Linux AMI 2012.03' ec2 instance. But then I get prompted for the ec2-user password:</p>
  
  <pre><code>[sudo] password for ec2-user:
  </code></pre>
  
  <p>but I log in using a key-pair? Is there a simple workaround for this?</p>
  
  <p>Thanks!</p>