Open steinybot opened 4 years ago
I can also see in the logs that it says:
2020-04-28T18:30:19.813+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: 2020/04/28 18:30:19 [DEBUG] setting computed for "sms_configuration" from ComputedKeys
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: 2020/04/28 18:30:19 [DEBUG] Creating Cognito User Pool: {
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: AdminCreateUserConfig: {
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: AllowAdminCreateUserOnly: true,
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: InviteMessageTemplate: {
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: EmailMessage: "Hi,\n\nA new CommUnity account has been created for you.\n\nUsername: {username}\nTemporary password: {####}\n\nPlease login and change your password.\n",
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: EmailSubject: "Your new CommUnity account",
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: SMSMessage: ""
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: },
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: UnusedAccountValidityDays: 0
2020-04-28T18:30:19.814+1200 [DEBUG] plugin.terraform-provider-aws_v2.59.0_x4: },
Just ran into this, providing admin_create_user_config.invite_message_template.sms_message
fixed it. I guess this field isn't optional if other values in admin_create_user_config.invite_message_template
are given?
Facing the same error. I have to comment the SMS message but it is throwing me this as well
Error: Error updating Cognito User pool: InvalidParameter: 1 validation error(s) found. │ - minimum field size of 6, UpdateUserPoolInput.AdminCreateUserConfig.InviteMessageTemplate.SMSMessage.
admin_create_user_config {
allow_admin_create_user_only = false
invite_message_template {
email_message = "Your username is {username}. Your temporary password is {####}. "
email_subject = "Sign up for Kibana"
# sms_message = "Your username is {username}. Sign up at {####} "
}
}
Is there any solution to this ??
@Sohaib112 Based on my previous comment, I think you may have to provide the sms template as well (whether or not you use it)
Community Note
Terraform Version
Terraform v0.12.24
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
The user pool should be created.
Actual Behavior
It failed with:
Steps to Reproduce
terraform apply
Important Factoids
I have no idea what "set nested attribute values to unknown instead" means. How do I set it to unkown?
References