Skip to content

Commit b5b0d55

Browse files
committed
Add Default UI customization (thanks @sp-lut)
1 parent e0cdded commit b5b0d55

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.33.0 (November 22, 2024)
2+
3+
ENHANCEMENTS:
4+
5+
* Add Default UI customization (thanks @sp-lut)
6+
17
## 0.32.0 (Oct 27, 2024)
28

39
ENHANCEMENTS:

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ No modules.
163163
| [aws_cognito_user_pool.pool](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool) | resource |
164164
| [aws_cognito_user_pool_client.client](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool_client) | resource |
165165
| [aws_cognito_user_pool_domain.domain](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool_domain) | resource |
166+
| [aws_cognito_user_pool_ui_customization.default_ui_customization](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool_ui_customization) | resource |
166167
| [aws_cognito_user_pool_ui_customization.ui_customization](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool_ui_customization) | resource |
167168

168169
## Inputs
@@ -196,6 +197,8 @@ No modules.
196197
| <a name="input_client_token_validity_units"></a> [client\_token\_validity\_units](#input\_client\_token\_validity\_units) | Configuration block for units in which the validity times are represented in. Valid values for the following arguments are: `seconds`, `minutes`, `hours` or `days`. | `any` | <pre>{<br> "access_token": "minutes",<br> "id_token": "minutes",<br> "refresh_token": "days"<br>}</pre> | no |
197198
| <a name="input_client_write_attributes"></a> [client\_write\_attributes](#input\_client\_write\_attributes) | List of user pool attributes the application client can write to | `list(string)` | `[]` | no |
198199
| <a name="input_clients"></a> [clients](#input\_clients) | A container with the clients definitions | `any` | `[]` | no |
200+
| <a name="input_default_ui_customization_css"></a> [default\_ui\_customization\_css](#input\_default\_ui\_customization\_css) | CSS file content for default UI customization | `string` | `null` | no |
201+
| <a name="input_default_ui_customization_image_file"></a> [default\_ui\_customization\_image\_file](#input\_default\_ui\_customization\_image\_file) | Image file path for default UI customization | `string` | `null` | no |
199202
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are `ACTIVE` and `INACTIVE`. | `string` | `"INACTIVE"` | no |
200203
| <a name="input_device_configuration"></a> [device\_configuration](#input\_device\_configuration) | The configuration for the user pool's device tracking | `map(any)` | `{}` | no |
201204
| <a name="input_device_configuration_challenge_required_on_new_device"></a> [device\_configuration\_challenge\_required\_on\_new\_device](#input\_device\_configuration\_challenge\_required\_on\_new\_device) | Indicates whether a challenge is required on a new device. Only applicable to a new device | `bool` | `null` | no |

ui-customization.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resource "aws_cognito_user_pool_ui_customization" "ui_customization" {
2424
resource "aws_cognito_user_pool_ui_customization" "default_ui_customization" {
2525
count = var.default_ui_customization_css != null || var.default_ui_customization_image_file != null ? 1 : 0
2626

27-
css = var.default_ui_customization_css
28-
image_file = var.default_ui_customization_image_file
27+
css = var.default_ui_customization_css
28+
image_file = var.default_ui_customization_image_file
2929
user_pool_id = aws_cognito_user_pool.pool[0].id
30-
}
30+
}

0 commit comments

Comments
 (0)