title: How can I use New-EC2Tag correct?
body: <p>I use powershell script to change Name tag as below :</p>
  
  <pre><code>New-EC2Tag -Resource $aws_instance_id -Tag @{Key="Name"; Value="WINTEST"}
  </code></pre>
  
  <p>but  I always receive output message like this :</p>
  
  <pre><code>New-EC2Tag : No credentials specified or obtained from persisted/shell defaults.
  </code></pre>
  
  <p>and the script not work. Something wrong with the command ? Please help me, I search it but i can't find correct answer for my problem.</p>