|
| 1 | +# sns-fifo-topic |
| 2 | + |
| 3 | +This module creates following resources. |
| 4 | + |
| 5 | +- `aws_sns_topic` |
| 6 | +- `aws_sns_topic_policy` (optional) |
| 7 | +- `aws_sns_topic_subscription` (optional) |
| 8 | + |
| 9 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 10 | +## Requirements |
| 11 | + |
| 12 | +| Name | Version | |
| 13 | +|------|---------| |
| 14 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5 | |
| 15 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.5 | |
| 16 | + |
| 17 | +## Providers |
| 18 | + |
| 19 | +| Name | Version | |
| 20 | +|------|---------| |
| 21 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.19.0 | |
| 22 | + |
| 23 | +## Modules |
| 24 | + |
| 25 | +| Name | Source | Version | |
| 26 | +|------|--------|---------| |
| 27 | +| <a name="module_resource_group"></a> [resource\_group](#module\_resource\_group) | tedilabs/misc/aws//modules/resource-group | ~> 0.10.0 | |
| 28 | + |
| 29 | +## Resources |
| 30 | + |
| 31 | +| Name | Type | |
| 32 | +|------|------| |
| 33 | +| [aws_sns_topic.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic) | resource | |
| 34 | +| [aws_sns_topic_policy.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_policy) | resource | |
| 35 | +| [aws_iam_policy_document.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | |
| 36 | + |
| 37 | +## Inputs |
| 38 | + |
| 39 | +| Name | Description | Type | Default | Required | |
| 40 | +|------|-------------|------|---------|:--------:| |
| 41 | +| <a name="input_name"></a> [name](#input\_name) | (Required) The name of the SNS topic. Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. For a FIFO (first-in-first-out) topic, the name must end with the `.fifo` suffix. | `string` | n/a | yes | |
| 42 | +| <a name="input_content_based_deduplication"></a> [content\_based\_deduplication](#input\_content\_based\_deduplication) | (Optional) Whether to enable default message deduplication based on message content. If set to `false`, a deduplication ID must be provided for every publish request. | `bool` | `false` | no | |
| 43 | +| <a name="input_display_name"></a> [display\_name](#input\_display\_name) | (Optional) The display name to use for a topic with SMS subscriptions. | `string` | `""` | no | |
| 44 | +| <a name="input_encryption_at_rest"></a> [encryption\_at\_rest](#input\_encryption\_at\_rest) | (Optional) A configuration to encrypt at rest in the SNS topic. Amazon SNS provides in-transit encryption by default. Enabling server-side encryption adds at-rest encryption to your topic. Amazon SNS encrypts your message as soon as it is received. The message is decrypted immediately prior to delivery. `encryption_at_rest` as defined below.<br> (Optional) `enabled` - Whether to enable encryption at rest. Defaults to `false`.<br> (Optional) `kms_key` - The ID of AWS KMS CMK (Customer Master Key) used for the encryption. | <pre>object({<br> enabled = optional(bool, false)<br> kms_key = optional(string)<br> })</pre> | `{}` | no | |
| 45 | +| <a name="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled) | (Optional) Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no | |
| 46 | +| <a name="input_policy"></a> [policy](#input\_policy) | (Optional) A valid policy JSON document. The resource-based policy defines who can publish or subscribe to the SNS topic. | `string` | `null` | no | |
| 47 | +| <a name="input_resource_group_description"></a> [resource\_group\_description](#input\_resource\_group\_description) | (Optional) The description of Resource Group. | `string` | `"Managed by Terraform."` | no | |
| 48 | +| <a name="input_resource_group_enabled"></a> [resource\_group\_enabled](#input\_resource\_group\_enabled) | (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. | `bool` | `true` | no | |
| 49 | +| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. | `string` | `""` | no | |
| 50 | +| <a name="input_signature_version"></a> [signature\_version](#input\_signature\_version) | (Optional) The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. Defaults to `1`. | `number` | `1` | no | |
| 51 | +| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) A map of tags to add to all resources. | `map(string)` | `{}` | no | |
| 52 | +| <a name="input_xray_tracing_enabled"></a> [xray\_tracing\_enabled](#input\_xray\_tracing\_enabled) | (Optional) Whether to activate AWS X-Ray Active Tracing mode for the SNS topic. If set to Active, Amazon SNS will vend X-Ray segment data to topic owner account if the sampled flag in the tracing header is true. Defaults to `false`, and the topic passes through the tracing header it receives from an Amazon SNS publisher to its subscriptions. | `bool` | `false` | no | |
| 53 | + |
| 54 | +## Outputs |
| 55 | + |
| 56 | +| Name | Description | |
| 57 | +|------|-------------| |
| 58 | +| <a name="output_arn"></a> [arn](#output\_arn) | The ARN of the SNS topic. | |
| 59 | +| <a name="output_content_based_deduplication"></a> [content\_based\_deduplication](#output\_content\_based\_deduplication) | Whether to enable default message deduplication based on message content. | |
| 60 | +| <a name="output_display_name"></a> [display\_name](#output\_display\_name) | The display name for a topic with SMS subscriptions. | |
| 61 | +| <a name="output_encryption_at_rest"></a> [encryption\_at\_rest](#output\_encryption\_at\_rest) | A configuration to encrypt at rest in the SNS topic. | |
| 62 | +| <a name="output_id"></a> [id](#output\_id) | The ID of the SNS topic. | |
| 63 | +| <a name="output_name"></a> [name](#output\_name) | The name for the SNS topic. | |
| 64 | +| <a name="output_owner"></a> [owner](#output\_owner) | The AWS Account ID of the SNS topic owner. | |
| 65 | +| <a name="output_signature_version"></a> [signature\_version](#output\_signature\_version) | The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS. | |
| 66 | +| <a name="output_type"></a> [type](#output\_type) | The type of the SNS topic. | |
| 67 | +| <a name="output_xray_tracing_enabled"></a> [xray\_tracing\_enabled](#output\_xray\_tracing\_enabled) | Whether to activate AWS X-Ray Active Tracing mode for the SNS topic. | |
| 68 | +| <a name="output_z"></a> [z](#output\_z) | The list of log streams for the log group. | |
| 69 | +| <a name="output_zz"></a> [zz](#output\_zz) | The list of log streams for the log group. | |
| 70 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
0 commit comments