Skip to content

Commit

Permalink
Update sqs_sns module version and add variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ltellesfl committed Oct 31, 2024
1 parent d07ea83 commit bc7e7f3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@ module "networking" {
}

module "sqs_sns" {
count = var.sqs_sns == true ? 1 : 0
source = "app.terraform.io/indico/indico-aws-sqs-sns/mod"
version = "1.2.0"
region = var.region
label = var.label
kms_master_key_id = module.kms_key.key.id
count = var.sqs_sns == true ? 1 : 0
source = "app.terraform.io/indico/indico-aws-sqs-sns/mod"
version = "2.0.0"
region = var.region
label = var.label
kms_master_key_id = module.kms_key.key.id
sqs_sns_type = var.sqs_sns_type
ipa_sns_topic_name = var.ipa_sns_topic_name
}

module "lambda-sns-forwarder" {
Expand Down
15 changes: 15 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1043,3 +1043,18 @@ variable "instance_volume_type" {
default = "gp2"
description = "The type of EBS volume to attach to the cluster nodes"
}

variable "sqs_sns_type" {
type = string
default = "create"
validation {
condition = var.sqs_sns_type == "create" || var.sqs_sns_type == "load"
error_message = "${var.sqs_sns_type} not valid. Type must be either create or load"
}
}

variable "ipa_sns_topic_name" {
type = string
description = "Full name of the SNS topic"
default = null
}

0 comments on commit bc7e7f3

Please sign in to comment.