Skip to content

Commit c6df608

Browse files
authored
feat: FIFO throughput scope (#63)
1 parent 49d85b8 commit c6df608

File tree

9 files changed

+17
-7
lines changed

9 files changed

+17
-7
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ module "sns_topic" {
135135
| Name | Version |
136136
|------|---------|
137137
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
138-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.25 |
138+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.98 |
139139

140140
## Providers
141141

142142
| Name | Version |
143143
|------|---------|
144-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.25 |
144+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.98 |
145145

146146
## Modules
147147

@@ -172,6 +172,7 @@ No modules.
172172
| <a name="input_delivery_policy"></a> [delivery\_policy](#input\_delivery\_policy) | The SNS delivery policy | `string` | `null` | no |
173173
| <a name="input_display_name"></a> [display\_name](#input\_display\_name) | The display name for the SNS topic | `string` | `null` | no |
174174
| <a name="input_enable_default_topic_policy"></a> [enable\_default\_topic\_policy](#input\_enable\_default\_topic\_policy) | Specifies whether to enable the default topic policy. Defaults to `true` | `bool` | `true` | no |
175+
| <a name="input_fifo_throughput_scope"></a> [fifo\_throughput\_scope](#input\_fifo\_throughput\_scope) | Enables higher throughput for FIFO topics by adjusting the scope of deduplication. This attribute has two possible values, Topic and MessageGroup | `string` | `null` | no |
175176
| <a name="input_fifo_topic"></a> [fifo\_topic](#input\_fifo\_topic) | Boolean indicating whether or not to create a FIFO (first-in-first-out) topic | `bool` | `false` | no |
176177
| <a name="input_firehose_feedback"></a> [firehose\_feedback](#input\_firehose\_feedback) | Map of IAM role ARNs and sample rate for success and failure feedback | `map(string)` | `{}` | no |
177178
| <a name="input_http_feedback"></a> [http\_feedback](#input\_http\_feedback) | Map of IAM role ARNs and sample rate for success and failure feedback | `map(string)` | `{}` | no |

examples/complete/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Note that this example may create resources which cost money. Run `terraform des
2323
| Name | Version |
2424
|------|---------|
2525
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
26-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.25 |
26+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.98 |
2727

2828
## Providers
2929

3030
| Name | Version |
3131
|------|---------|
32-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.25 |
32+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.98 |
3333

3434
## Modules
3535

examples/complete/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ module "complete_sns" {
6262

6363
# SQS queue must be FIFO as well
6464
fifo_topic = true
65+
fifo_throughput_scope = "MessageGroup"
6566
content_based_deduplication = true
6667

6768
delivery_policy = jsonencode({

examples/complete/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.25"
7+
version = ">= 5.98"
88
}
99
}
1010
}

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ resource "aws_sns_topic" "this" {
2121
content_based_deduplication = var.content_based_deduplication
2222
delivery_policy = var.delivery_policy
2323
display_name = var.display_name
24+
fifo_throughput_scope = var.fifo_throughput_scope
2425
fifo_topic = var.fifo_topic
2526
signature_version = var.fifo_topic ? null : var.signature_version
2627
tracing_config = var.tracing_config

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ variable "display_name" {
5656
default = null
5757
}
5858

59+
variable "fifo_throughput_scope" {
60+
description = "Enables higher throughput for FIFO topics by adjusting the scope of deduplication. This attribute has two possible values, Topic and MessageGroup"
61+
type = string
62+
default = null
63+
}
64+
5965
variable "fifo_topic" {
6066
description = "Boolean indicating whether or not to create a FIFO (first-in-first-out) topic"
6167
type = bool

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.25"
7+
version = ">= 5.98"
88
}
99
}
1010
}

wrappers/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module "wrapper" {
1313
delivery_policy = try(each.value.delivery_policy, var.defaults.delivery_policy, null)
1414
display_name = try(each.value.display_name, var.defaults.display_name, null)
1515
enable_default_topic_policy = try(each.value.enable_default_topic_policy, var.defaults.enable_default_topic_policy, true)
16+
fifo_throughput_scope = try(each.value.fifo_throughput_scope, var.defaults.fifo_throughput_scope, null)
1617
fifo_topic = try(each.value.fifo_topic, var.defaults.fifo_topic, false)
1718
firehose_feedback = try(each.value.firehose_feedback, var.defaults.firehose_feedback, {})
1819
http_feedback = try(each.value.http_feedback, var.defaults.http_feedback, {})

wrappers/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.25"
7+
version = ">= 5.98"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)