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?

It’s not going to be easy…
you would have to create user profiles with

And then collect the output and use with the local-exec provisioner somehow

I’d recommend creating the users outside Terraform, and collecting them with the data resource for defining groups