Hi there with
resource “aws_cognito_user_pool”
…
admin_create_user_config {
allow_admin_create_user_only = false
invite_message_template {
email_message = “variable with information using aws resources created”
email_subject = “You’ve been invited to the stack ${var.project_id}.”
sms_message = “Your username is {username} and temporary password is {####}”
}
}
Is there anyway to set the admin_create_user_config values separately? I.e. I want the cognito pool and some other things all created before setting the invite_message_template.
I guess I could use AWS calls after the code has deployed to set the message template and add the users, but I would like to do it all within the infrastructure deployment code.
Regards,
Dan