Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Completed
Categories MongoDB Shell
Created by Guest
Created on Mar 17, 2022

Add support for AWS_PROFILE when authMechanism is MONGODB-AWS

Currently, when using MONGODB-AWS, it can only read the following variables: AWS ACCESS KEY ID AWS SECRET ACCESS KEY AWS SESSION TOKEN which forces you to export credentials or to paste them in the CLI. AWS has a variable called AWS_PROFILE that will fetch the required values from your credential file, without having to paste them again. This variable is supported by anything using AWS SDK, so mongosh should have support for it as well.
  • ADMIN RESPONSE
    Oct 18, 2025
    Hi there, Thank you for your feedback. We wanted to let you know this issue has been resolved starting mongosh version 2.2.0. Please find the latest version of mongosh here: https://www.mongodb.com/try/download/shell. Please let us know how else we could make your MongoDB Shell experience better!
  • Guest
    Sep 24, 2024
    This is resolved starting mongosh version 2.2.0. Please find the latest version of mongosh here: https://www.mongodb.com/try/download/shell.