{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Enables PyMongo to authenticate to MongoDB using AWS Identity and Access Management (IAM) credentials via the MONGODB-AWS authentication mechanism.","skillfed_tags":["aws-iam","mongodb-auth"],"use_cases":["Authenticate Lambda functions or ECS tasks to MongoDB using their IAM roles without embedding database credentials.","Connect EC2 instances to MongoDB Atlas using temporary AWS STS tokens instead of static passwords.","Enable local development with AWS IAM credentials by leveraging boto3's credential chain (environment variables, config files, or IAM roles).","Simplify credential rotation in applications by relying on AWS IAM's built-in token expiration and refresh.","Integrate MongoDB authentication into AWS-native applications that already use boto3 for other AWS services."],"what_it_does":"pymongo-auth-aws is a plugin that extends PyMongo's authentication capabilities to support AWS IAM-based credentials. It bridges PyMongo and AWS by using boto3 and botocore to obtain temporary security tokens and pass them to MongoDB's MONGODB-AWS authentication mechanism. This allows applications running on AWS (EC2, Lambda, ECS, etc.) or with AWS credentials configured locally to authenticate to MongoDB Atlas or self-hosted MongoDB instances without managing long-lived database passwords.\n\nThe package is designed as a drop-in extension: once installed, you specify `authMechanism=MONGODB-AWS` in your MongoDB connection string, and pymongo-auth-aws handles credential retrieval and token generation transparently. It supports CPython 3.8+ and PyPy 3.7+, and is actively maintained by MongoDB.","worth_installing":"Yes. Install this if you are using PyMongo with MongoDB Atlas or MongoDB instances that support MONGODB-AWS authentication and you want to authenticate using AWS IAM credentials. It has low install friction, is actively maintained, carries no known vulnerabilities, and is licensed permissively. The only prerequisite is that you have AWS credentials available in your environment."},"id":"pymongo-auth-aws","links":{"html":"https://skillfed.io/packages/pymongo-auth-aws","md":"https://skillfed.io/packages/pymongo-auth-aws.md","pypi":"https://pypi.org/project/pymongo-auth-aws/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-09-11","license_spdx":null,"license_treatment":"permissive","name":"pymongo-auth-aws","python_support":"supports_current","summary":"MONGODB-AWS authentication support for PyMongo"},"popularity":{"monthly_downloads":2213863,"position":3205,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
