Reputation: 117
# aws_cognito_user_pool.user_pool will be updated in-place
~ resource "aws_cognito_user_pool" "user_pool" {
id = "us-east-1_xxxyyy"
name = "my-user-pool"
tags = {
"Name" = "my-user-pool"
}
# (10 unchanged attributes hidden)
~ password_policy {
- temporary_password_validity_days = 7 -> null
# (5 unchanged attributes hidden)
}
# (4 unchanged blocks hidden)
}
Whenever I run terraform plan
, my user pool always appears as a change. There are no changes to this resource at all. Is this some bug? How can I prevent this?
Upvotes: 0
Views: 220
Reputation: 200998
That plan output says you have temporary_password_validity_days
set to 7
in AWS Cognito, but you have no value for that in your Terraform template, so it is being changed from 7
to null
. I'm guessing that when you don't set that explicitly, AWS defaults it to 7
, so this keeps happening to you.
You should update your Terraform template to include temporary_password_validity_days = 7
Upvotes: 2