I found out of the box this provider wouldn't work with a different mongodb that wasnt configured in the way this provider assumes.
changing the users role from readWriteAnyDatabase to readAnyDatabase resulted in an error.
destroying the resource would work from terraform perspective but the user was retained on the mongodb.
found a few hardcoded vars and suggest using dropUser command to delete the user on update (there is a discussion about maybe updating the user in place but this PR doesn't address that)
I found out of the box this provider wouldn't work with a different mongodb that wasnt configured in the way this provider assumes. changing the users role from
readWriteAnyDatabase
toreadAnyDatabase
resulted in an error. destroying the resource would work from terraform perspective but the user was retained on the mongodb.found a few hardcoded vars and suggest using
dropUser
command to delete the user on update (there is a discussion about maybe updating the user in place but this PR doesn't address that)just to say thanks for this TF provider as well!