Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion aws-cognito-user-pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ resource "aws_cognito_user_pool" "user_pool" {
var.lambda_pre_token_generation,
var.lambda_user_migration,
var.lambda_verify_auth_challenge_response,
var.lambda_custom_email_sender
var.lambda_custom_email_sender,
var.lambda_kms_key_arn
), null) == null ? [] : [true]

content {
Expand All @@ -150,6 +151,7 @@ resource "aws_cognito_user_pool" "user_pool" {
pre_token_generation = var.lambda_pre_token_generation
user_migration = var.lambda_user_migration
verify_auth_challenge_response = var.lambda_verify_auth_challenge_response
kms_key_id = var.lambda_kms_key_arn
custom_email_sender {
lambda_arn = var.lambda_custom_email_sender.lambda_arn
lambda_version = var.lambda_custom_email_sender.lambda_version
Expand Down
7 changes: 6 additions & 1 deletion aws-cognito-user-pool/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,18 @@ variable "lambda_verify_auth_challenge_response" {
}

variable "lambda_custom_email_sender" {
description = "(Optional) Configuration block for custom email sender Lambda triggers"
description = "Configuration block for custom email sender Lambda triggers"
type = object({
lambda_arn = string
lambda_version = string
})
}

variable "lambda_kms_key_arn" {
description = "The ARN of the KMS key used to encrypt the Lambda function's environment variables."
type = string
}

variable "schema_attributes" {
description = "(Optional) A list of schema attributes of a user pool. You can add a maximum of 25 custom attributes."
type = any
Expand Down
Loading