Skip to content

Commit

Permalink
- FIX
Browse files Browse the repository at this point in the history
  fixed aws_iam_user_login_profile ignore changes for change password.
  • Loading branch information
y-miyazaki committed Nov 9, 2022
1 parent 43c2242 commit eb6897f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/aws/recipes/iam/user_group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ resource "aws_iam_user_login_profile" "this" {
user = each.value
pgp_key = "keybase:exp_enechange"
password_reset_required = true
# Check this following document.
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user_login_profile#import
lifecycle {
ignore_changes = [
password_length,
password_reset_required,
pgp_key,
]
}
depends_on = [
aws_iam_user.this,
]
Expand Down

0 comments on commit eb6897f

Please sign in to comment.