Initial password notification email


I’m trying to set up AWS IAM Users and give out initial passwords for console access.

Is there any way that I can get an initial password and send a email thru Terraform?

Also will it reset the existing users’ passwords if I run new aws_iam_user_login_profile to create a password?