Creating Atlas cluster cloudformation resource with CDK fails on the database user creation. Is something missing or it is a configuration on the organization:
"Error getting resource : POST https://cloud.mongodb.com/api/atlas/v1.0/groups/6523c0dd3746682b04c83c9b/databaseUsers: 400 (request "ATLAS_INVALID_AUTH_SETTINGS") Invalid authentication settings. Users
cannot be configured for multiple authentication mechanisms (SCRAM, MONGODB_AWS)."
Hi @Nikita_Levi and welcome to MongoDB community forums!!
Based on the above error message, it looks like you are trying to set the IAM role while creating the user.
As mentioned in the API documentation, you would need to set the ARN in the username section.
Please let us know if this works.
If not, could you help me with the documentation you are referring to create the user?