-
Type:
Task
-
Resolution: Community Answered
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Hi Team,
There is an ask from the customer for having an AWS IAM authentication enabled with the spark connector for MongoDB.
Would like to know, a. If it is possible to use an IAM Authentication URL with MongoDB spark connectors 10.1.1.
b. If no, is there any roadmap for this feature to be included?
Example:
current Spark Connector:
spark = SparkSession \
.builder \
.appName("myApp") \
.config("spark.mongodb.read.connection.uri", "mongodb+srv://<username>:<pasword>@<server address>.mongodb.net/<database>.<collection>?retryWrites=true&w=majority") \
.getOrCreate()
Expected Spark Connector:
current Spark Connector:
spark = SparkSession \
.builder \
.appName("myApp") \
.config("spark.mongodb.read.connection.uri", "mongodb+srv://<AWS access key>:<AWS secret key>@s3load.frzascf.mongodb.net/?authSource=%24external&authMechanism=MONGODB-AWS&retryWrites=true&w=majority&authMechanismProperties=AWS_SESSION_TOKEN:<session token (for AWS IAM Roles)>") \
.getOrCreate()