-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Resource aws_iam_user_login_profile "forces replacement" after upgrade to aws provider v4x #23567
Comments
Had the same issue. Worked around it by explicitly ignoring changes on password_reset_required by lifcycle policy on the resource. Which should be the case automatically according to the manual. Workaround:
|
Is this possibly related to #12384? The default value for I've tested cc @DrFaust92 as the PR author as I'm unsure on the context for that change |
I'm having the same problem, unfortunately, I am using terraform-aws-iam module and I cannot do the workaround without creating a fork. Is this behavior expected @DrFaust92? If so, I will ask for help in terraform-aws-modules/terraform-aws-iam#244 |
@amontalban I created terraform-aws-modules/terraform-aws-iam#271, please, 👍🏻 it - I am in the same boat, the upgrade of the AWS provider from v3 to v4 created a huge mess and locked out of AWS a bunch of people. |
This is not applicable here - this issue is asking for it to be addressed in the provider |
@bryantbiggs I agree. Still, it's a vastly popular module, which also does not work due to the upstream issue, which does not seem to be getting fixed anytime soon! |
Seeing this as an issue with a client. Any movement on it? |
Got hit by it today while migrating 3.x -> 4.x. This change can be worked through but needs to be documented. Don't see any movement here. |
It caught me out also, so I submitted a PR to at least update the docs. #35601 |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.46.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Affected Resource(s)
Hi team, as the title says, the resource aws_iam_user_login_profile breaks after the upgrade to AWS provider v4x.
While the terraform code dictates
password_reset_required = true
and in the state file i can see that"password_reset_required": true,
(in the aws console of course its enabled).When i am running terraform apply i get the
~ password_reset_required = false -> true # forces replacement
I understand that the upgrade to aws provider v4x is introducing many breaking changes but i wasn’t able to find anything useful in the upgrade documentation here
Terraform CLI and Terraform AWS Provider Version
P.S We are not using multiple providers, there is only 1 piece of code that this provider is declared:
Am i missing something?
Thanks!
The text was updated successfully, but these errors were encountered: