Skip to content

Commit eb5b965

Browse files
feat: Add firehose args (#35)
Co-authored-by: Bryant Biggs <[email protected]> Closes #34
1 parent b27420c commit eb5b965

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ No modules.
5353
| <a name="input_delivery_policy"></a> [delivery\_policy](#input\_delivery\_policy) | The SNS delivery policy | `string` | `null` | no |
5454
| <a name="input_display_name"></a> [display\_name](#input\_display\_name) | The display name for the SNS topic | `string` | `null` | no |
5555
| <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 |
56+
| <a name="input_firehose_failure_feedback_role_arn"></a> [firehose\_failure\_feedback\_role\_arn](#input\_firehose\_failure\_feedback\_role\_arn) | IAM role for failure feedback | `string` | `null` | no |
57+
| <a name="input_firehose_success_feedback_role_arn"></a> [firehose\_success\_feedback\_role\_arn](#input\_firehose\_success\_feedback\_role\_arn) | The IAM role permitted to receive success feedback for this topic | `string` | `null` | no |
58+
| <a name="input_firehose_success_feedback_sample_rate"></a> [firehose\_success\_feedback\_sample\_rate](#input\_firehose\_success\_feedback\_sample\_rate) | Percentage of success to sample | `number` | `null` | no |
5659
| <a name="input_http_failure_feedback_role_arn"></a> [http\_failure\_feedback\_role\_arn](#input\_http\_failure\_feedback\_role\_arn) | IAM role for failure feedback | `string` | `null` | no |
5760
| <a name="input_http_success_feedback_role_arn"></a> [http\_success\_feedback\_role\_arn](#input\_http\_success\_feedback\_role\_arn) | The IAM role permitted to receive success feedback for this topic | `string` | `null` | no |
5861
| <a name="input_http_success_feedback_sample_rate"></a> [http\_success\_feedback\_sample\_rate](#input\_http\_success\_feedback\_sample\_rate) | Percentage of success to sample | `string` | `null` | no |

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ resource "aws_sns_topic" "this" {
1010
application_success_feedback_role_arn = var.application_success_feedback_role_arn
1111
application_success_feedback_sample_rate = var.application_success_feedback_sample_rate
1212
application_failure_feedback_role_arn = var.application_failure_feedback_role_arn
13+
firehose_success_feedback_role_arn = var.firehose_success_feedback_role_arn
14+
firehose_success_feedback_sample_rate = var.firehose_success_feedback_sample_rate
15+
firehose_failure_feedback_role_arn = var.firehose_failure_feedback_role_arn
1316
http_success_feedback_role_arn = var.http_success_feedback_role_arn
1417
http_success_feedback_sample_rate = var.http_success_feedback_sample_rate
1518
http_failure_feedback_role_arn = var.http_failure_feedback_role_arn

variables.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,24 @@ variable "application_failure_feedback_role_arn" {
5252
default = null
5353
}
5454

55+
variable "firehose_success_feedback_role_arn" {
56+
description = "The IAM role permitted to receive success feedback for this topic"
57+
type = string
58+
default = null
59+
}
60+
61+
variable "firehose_success_feedback_sample_rate" {
62+
description = "Percentage of success to sample"
63+
type = number
64+
default = null
65+
}
66+
67+
variable "firehose_failure_feedback_role_arn" {
68+
description = "IAM role for failure feedback"
69+
type = string
70+
default = null
71+
}
72+
5573
variable "http_success_feedback_role_arn" {
5674
description = "The IAM role permitted to receive success feedback for this topic"
5775
type = string

0 commit comments

Comments
 (0)