-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kloia/v0.0.15sqs-bug
V0.0.15sqs bug
- Loading branch information
Showing
8 changed files
with
82 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
|
||
|
||
module "my_sqs" { | ||
source = "../../sqs" | ||
queue_names = ["osman1"] | ||
source = "git::https://github.com/kloia/terraform-modules//sqs?ref=v0.0.15sqs" | ||
queue_names = ["q1", "q2", "q3"] | ||
tag_name = "tag" | ||
tag_deployment ="deployment" | ||
tag_kubernetes_cluster = "k8s" | ||
tag_organisation = "org" | ||
tag_project = "project" | ||
tag_deployment_code = "deployment" | ||
aws_region = "" | ||
aws_accountId = "" | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ output "global" { | |
Project = "${var.tag_project}" | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
variable "object_names" { | ||
type = "list" | ||
} | ||
|
||
locals { | ||
queue_names = "${var.object_names}" | ||
} | ||
|
||
resource "null_resource" "queue_mappings" { | ||
count = "${length(local.queue_names)}" | ||
|
||
triggers { | ||
queue_name = "${element(local.queue_names, count.index)}" | ||
max_message_size=262144 | ||
vis_timeout_sec=43200 | ||
mes_ret_sec=1209600 | ||
rec_wait_time_sec=0 | ||
fifo_queue=false | ||
delaysec = 90 | ||
} | ||
} | ||
output "queue_mappings" { | ||
value = "${null_resource.queue_mappings.*.triggers}" | ||
} | ||
|
||
resource "null_resource" "dead_letter_queue_mappings" { | ||
count = "${length(local.queue_names)}" | ||
|
||
triggers { | ||
queue_name = "${element(local.queue_names, count.index)}_dlx" | ||
max_message_size=262144 | ||
vis_timeout_sec=43200 | ||
mes_ret_sec=1209600 | ||
rec_wait_time_sec=0 | ||
fifo_queue=false | ||
delaysec = 90 | ||
|
||
} | ||
} | ||
output "dead_letter_queue_mappings" { | ||
value = "${null_resource.dead_letter_queue_mappings.*.triggers}" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters