To use a named profile, add the --profile <PROFILE_NAME> option to your command. aws ec2 describe-instances --profile user1 To use a named profile for multiple commands, set the AWS_PROFILE environment variable Linux/MacOS: export AWS_PROFILE=user1 Windows: setx AWS_PROFILE user1 Resources Using profiles with the AWS CLI