|
1 | 1 | # Terraform Module: AWS Cognito Custom Message Sender |
2 | 2 |
|
3 | | -:warning: **This module is not ready for use. Wait until v1.x.x release.** |
4 | | - |
5 | 3 | This Terraform module deploys a AWS Lambda function to serve as a custom SMS |
6 | 4 | sender for AWS Cognito. The module uses Open Policy Agent (OPA) policies to |
7 | 5 | determine whether to send an SMS message or not, and can be customized to fit |
@@ -43,18 +41,20 @@ other optional variables (e.g., `name`, `tags`, etc.) provided by the |
43 | 41 | `cloudposse/label/null` module. Please refer to its [documentation](https://registry.terraform.io/modules/cloudposse/label/null/latest) |
44 | 42 | for more details on these variables. |
45 | 43 |
|
46 | | -| Name | Description | Type | Default | Required | |
47 | | -|-----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------:|:---------:|:--------:| |
48 | | -| `kms_key_alias_prefix` | The prefix for the KMS key alias. It must start with 'alias' and only include alphanumeric characters, dashes, underscores, colons or slashes, but doesn't end with a slash. | `string` | `"alias"` | no | |
49 | | -| `service_log_level` | The log level for the service. It must be one of 'debug', 'info', 'warn', 'error', 'panic' or 'fatal'. | `string` | `"info"` | no | |
50 | | -| `email_sender_version` | Version or git ref of the source code | `string` | `"latest"` | no | |
51 | | -| `email_sender_enabled` | Whether or not the eamil sender is enabled. | `bool` | `false` | no | |
52 | | -| `email_sender_policy_content` | The content of the Open Policy Agent policy for email sender. It must include the string 'package cognito_custom_sender_email_policy'. | `string` | n/a | yes | |
53 | | -| `sms_sender_enabled` | Whether or not the SMS sender is enabled. | `bool` | `false` | no | |
54 | | -| `sms_sender_policy_content` | The content of the Open Policy Agent policy for SMS sender. It must include the string 'package cognito_custom_sender_sms_policy'. | `string` | n/a | yes | |
55 | | -| `sms_sender_throttle_period_in_minutes` | The throttle period for the SMS sender, in minutes. It must be a positive integer. | `number` | `15` | no | |
56 | | -| `aws_account_id` | The AWS account ID that the module will be deployed in. | `string` | `""` | no | |
57 | | -| `aws_region_name` | The AWS region name where the module will be deployed. | `string` | `""` | no | |
| 44 | +| Name | Description | Type | Default | Required | |
| 45 | +|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|:--------:|:----------:|:--------:| |
| 46 | +| `kms_key_alias_prefix` | The prefix for the KMS key alias. | `string` | `"alias"` | no | |
| 47 | +| `service_log_level` | The log level for the service. It must be one of 'debug', 'info', 'warn', 'error', 'panic' or 'fatal'. | `string` | `"info"` | no | |
| 48 | +| `email_sender_version` | Version or git ref of the source code | `string` | `"latest"` | no | |
| 49 | +| `email_sender_enabled` | Whether or not the eamil sender is enabled. | `bool` | `false` | no | |
| 50 | +| `email_sender_policy_content` | The content of the Open Policy Agent policy for email sender. It must include the string 'package cognito_custom_sender_email_policy'. | `string` | n/a | yes | |
| 51 | +| `sendgrid_api_key` | The SendGrid API key used to interact with its API. | `string` | `""` | no | |
| 52 | +| `sendgrid_email_verification_enabled` | Toggle to use email verification. | `bool` | `false` | no | |
| 53 | +| `sms_sender_enabled` | Whether or not the SMS sender is enabled. | `bool` | `false` | no | |
| 54 | +| `sms_sender_policy_content` | The content of the Open Policy Agent policy for SMS sender. It must include the string 'package cognito_custom_sender_sms_policy'. | `string` | n/a | yes | |
| 55 | +| `sms_sender_throttle_period_in_minutes` | The throttle period for the SMS sender, in minutes. It must be a positive integer. | `number` | `15` | no | |
| 56 | +| `aws_account_id` | The AWS account ID that the module will be deployed in. | `string` | `""` | no | |
| 57 | +| `aws_region_name` | The AWS region name where the module will be deployed. | `string` | `""` | no | |
58 | 58 |
|
59 | 59 | ## Outputs |
60 | 60 |
|
|
0 commit comments