-
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
email_verification_message of cognito_user_pool change every time #2423
Comments
I have the same problem. My environment is following:
And my resource "aws_cognito_user_pool" "pool" {
name = "MyPool"
auto_verified_attributes = ["email"]
email_verification_subject = "email_verification_subject"
email_verification_message = "email_verification_message {####}"
verification_message_template {
default_email_option = "CONFIRM_WITH_CODE"
email_subject = "verification_message_template.email_subject"
email_message = "verification_message_template.email_message {####}"
}
} I successfully created new Cognito User Pool by it, However, I found diff whenever I ran
And in this time, "auto_verified_attributes.#": "1",
"auto_verified_attributes.881205744": "email", |
To prevent confusion, using |
HI folks, Yeh stumbled upon this while making the resource: it appeared that both are synchronised. Updating the documentation is fine for me I think. We just need to contact AWS and see if we can specify the 2 OR if one should specify |
@Ninir I was seeing this issue with the
I'd suggest that we deprecate the root level attributes here (to be removed in version 2 of the provider) and set the root level ones to computed now. If you're happy with that approach I can raise a pull request to cover that work. |
Too early this morning apparently and completely missed the linked pull request above my comment which mostly deals with this problem but doesn't fully cover things. @atsushi-ishibashi could you add the SMS stuff to the pull request as well please? |
@tomelliff Thank you!! I'll add it |
@tomelliff Thank you for the feedback, this explains it all! @atsushi-ishibashi thanks! ;) |
In version 2.0.0 of the Terraform AWS Provider, releasing later this week, the following changes have been made:
Thanks for you patience with introducing this (potentially) breaking change. 👍 |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
In
testAccAWSCognitoUserPoolConfig_withVerificationMessageTemplate
, I changedverification_message_template.email_message
to"Foo {####} Hoge"
and keepemail_verification_message
as"Foo {####} Bar"
. Of course I chagedTestCheckResourceAttr
as well.I run
TestAccAWSCognitoUserPool_withVerificationMessageTemplate
and the below error happened.This may be caused by the specification of the relation between
verification_message_template.email_message
andemail_verification_message
parameters...Probably
verification_message_template.email_message
beatsemail_verification_message
.The text was updated successfully, but these errors were encountered: