-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created users with login profiles shouldn't reset their passwords #244
Comments
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
This issue has been resolved in version 5.3.1 🎉 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
I recently created a bunch of users using the
iam-user
module in this repository using afor_each
loop:I later on wanted to add a bunch of other IAM users in a 2nd iteration and make sure that they get a temporary password and require their reset on the first login using the same code.
When I
terraform plan
with the 2nd batch of users, I see that the created users in the first iteration will have new temporary passwords and will require to reset them on first login again:I am aware of the
password_reset_required
variable, but this forces me to change my variable configuration after applying the code.Versions
Module version [Required]: 4.20
Terraform version:
Reproduction Code [Required]
terraform plan/apply
Expected behavior
I'd expect the module to create the login profile with a generated password in the first place, but ignore changes that are made outside it's control, specially when it's with sensitive data like passwords/PGP.
Maybe add a
lifcecycle
meta-block?:Edit:
I found out that this is an AWS provider issue tracked in here: hashicorp/terraform-provider-aws#23567
Actual behavior
password_reset_required
is static and requires actions afterterraform apply
. This makes me have to worry about my variables post applying a new configuration.The text was updated successfully, but these errors were encountered: