title: Change the default user on the fly on AWS CLI (Amazon Web Services)
body: <p>On my AWS CLI, I have multiple named users, for different account accesses. As part of testing and clients' accesses, we naturally have multiple user keys entered. </p>
  
  <p>To run a AWS CLI command, I understand that the syntax is</p>
  
  <pre><code>$ aws ec2 describe-instances --profile user2
  </code></pre>
  
  <p>The --profile option specifies which named user to use. </p>
  
  <p>My question is: if I wanted to do a bunch of functions on a specific bucket that another user (let's say the name is brixwork, but it's the 3rd user in my config file) it's cumbersome to have to add <code>--profile brixwork</code> for each and every line. Is there a way to set the default user for a while without actually having to change the config file to set brixwork as the user? </p>