Skip to content

Commit 48ac822

Browse files
app-rails: Update template-infra:app to version 0.15.4.post14.dev0+b84f45f
1 parent f45d77c commit 48ac822

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.template-infra/app-app-rails.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.15.4-13-g8a81725
2+
_commit: v0.15.4-14-gb84f45f
33
_src_path: https://github.com/navapbc/template-infra
44
app_has_dev_env_setup: true
55
app_local_port: 3100

infra/app-rails/app-config/env-config/identity_provider.tf

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@ locals {
1414
# Docs: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html
1515
logout_url_path = ""
1616

17+
# Customize password policy
18+
# Docs: https://docs.aws.amazon.com/cognito/latest/developerguide/managing-users-passwords.html
19+
password_policy = {
20+
password_minimum_length = 12
21+
temporary_password_validity_days = 7
22+
}
23+
24+
# Optionally configure email template for resetting a password.
25+
# Set any attribute to a non-null value to override AWS Cognito defaults.
26+
# Docs: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html
27+
verification_email = {
28+
verification_email_message = null
29+
verification_email_subject = null
30+
}
31+
1732
identity_provider_config = var.enable_identity_provider ? {
1833
identity_provider_name = "${var.app_name}-${var.environment}"
1934

20-
password_policy = {
21-
password_minimum_length = 12
22-
temporary_password_validity_days = 7
23-
}
35+
password_policy = local.password_policy
2436

25-
# Optionally configure email template for resetting a password.
26-
# Set any attribute to a non-null value to override AWS Cognito defaults.
27-
# Docs: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-message-customizations.html
28-
verification_email = {
29-
verification_email_message = null
30-
verification_email_subject = null
31-
}
37+
verification_email = local.verification_email
3238

3339
# Do not modify this block directly.
3440
client = {

0 commit comments

Comments
 (0)