diff --git a/aws/resource_aws_cognito_user_pool.go b/aws/resource_aws_cognito_user_pool.go index 6b8dfbcd12a..b1eb81c2cd7 100644 --- a/aws/resource_aws_cognito_user_pool.go +++ b/aws/resource_aws_cognito_user_pool.go @@ -410,6 +410,7 @@ func resourceAwsCognitoUserPool() *schema.Resource { "sms_verification_message": { Type: schema.TypeString, Optional: true, + Computed: true, ValidateFunc: validateCognitoUserPoolSmsVerificationMessage, ConflictsWith: []string{"verification_message_template.0.sms_message"}, }, diff --git a/aws/resource_aws_cognito_user_pool_test.go b/aws/resource_aws_cognito_user_pool_test.go index e3861f3d621..16ca3652441 100644 --- a/aws/resource_aws_cognito_user_pool_test.go +++ b/aws/resource_aws_cognito_user_pool_test.go @@ -1200,7 +1200,6 @@ resource "aws_cognito_user_pool" "pool" { email_verification_message = "Foo {####} Bar" email_verification_subject = "FooBar {####}" - sms_verification_message = "{####} Baz" # Setting Verification template attributes like EmailMessage, EmailSubject or SmsMessage # will implicitly set EmailVerificationMessage, EmailVerificationSubject and SmsVerificationMessage @@ -1209,6 +1208,7 @@ resource "aws_cognito_user_pool" "pool" { default_email_option = "CONFIRM_WITH_LINK" email_message_by_link = "{##foobar##}" email_subject_by_link = "foobar" + sms_message = "{####} Baz" } } `, name)