Skip to content

Commit 2ad7d47

Browse files
committed
corrected sqs referencing
1 parent e64e1da commit 2ad7d47

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

infrastructure/lambda-pdf-stitching.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module "pdf-stitching-lambda" {
77
module.ndr-lloyd-george-store.s3_write_policy_document,
88
module.ndr-lloyd-george-store.s3_read_policy_document,
99
module.sqs-nrl-queue.sqs_write_policy_document,
10-
module.sqs-stitching-queue-deadletter.sqs_write_policy_document,
10+
module.sqs-stitching-queue.sqs_write_policy_document,
1111
module.sqs-stitching-queue.sqs_read_policy_document
1212
]
1313
rest_api_id = null
@@ -16,17 +16,17 @@ module "pdf-stitching-lambda" {
1616
}
1717

1818
resource "aws_lambda_event_source_mapping" "pdf-stitching-lambda" {
19-
event_source_arn = module.sqs-stitching-queue.arn
19+
event_source_arn = module.sqs-stitching-queue.endpoint
2020
function_name = module.pdf-stitching-lambda.lambda_arn
2121

22-
depends_on [
23-
module.pdf-stitching-lambda
24-
module.sqs-stitching
22+
depends_on = [
23+
module.pdf-stitching-lambda,
24+
module.sqs-stitching-queue
2525
]
2626
}
2727

2828
module "pdf-stitching-lambda-alarms" {
29-
source = "modules/lambda_alarms"
29+
source = "./modules/lambda_alarms"
3030
lambda_function_name = module.pdf-stitching-lambda.function_name
3131
lambda_timeout = module.pdf-stitching-lambda.timeout
3232
lambda_name = "pdf-stitching-lambda"

infrastructure/sqs-stitching.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
module "sqs-stitching-queue" {
22
source = "./modules/sqs"
3-
name = "stitching-queue.fifo"
3+
name = "stitching-queue"
44
environment = var.environment
55
owner = var.owner
66
message_retention = 1800
77
enable_sse = true
88
max_visibility = 601
9-
enable_deduplication = true
10-
enable_fifo = true
119
enable_dlq = true
1210
}

0 commit comments

Comments
 (0)