Skip to content

Commit 5bf2cc4

Browse files
committed
Don't duplicate config in docs
1 parent 38bbd06 commit 5bf2cc4

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

docs/infra/identity-provider.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,7 @@ Update `enable_identity_provider = true` in your application's `app-config` modu
1515

1616
## 2. Configure identity provider settings
1717

18-
The identity provider configuration is defined in the environment config module in `infra/<APP_NAME>/app-config/env-config/identity_provider.tf`. You can customize the following settings:
19-
20-
- `callback_url_path`: Path fragment for post-login redirect (optional)
21-
- `logout_url_path`: Path fragment for post-logout redirect (optional)
22-
- `password_policy`: Customize password requirements
23-
- `password_minimum_length`: Minimum password length
24-
- `temporary_password_validity_days`: Days until temporary passwords expire
25-
- `verification_email`: Customize verification email content
26-
- `verification_email_message`: Custom message content
27-
- `verification_email_subject`: Custom email subject
18+
The identity provider configuration is defined in the environment config module in `infra/<APP_NAME>/app-config/env-config/identity_provider.tf`.
2819

2920
## 3. Deploy the identity provider
3021

infra/{{app_name}}/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)