diff --git a/backend/worker/pe-worker-entry.sh b/backend/worker/pe-worker-entry.sh index 0d82f8729..a50779725 100644 --- a/backend/worker/pe-worker-entry.sh +++ b/backend/worker/pe-worker-entry.sh @@ -26,5 +26,5 @@ while true; do # Delete the processed message from the queue RECEIPT_HANDLE=$(echo "$MESSAGE" | jq -r '.ReceiptHandle') - aws sqs delete-message --queue-url YOUR_SHODAN_QUEUE_URL --receipt-handle "$RECEIPT_HANDLE" + aws sqs delete-message --queue-url "$SHODAN_QUEUE_URL" --receipt-handle "$RECEIPT_HANDLE" done \ No newline at end of file diff --git a/infrastructure/pe_worker.tf b/infrastructure/pe_worker.tf index 3dc6287b9..866fbdce4 100644 --- a/infrastructure/pe_worker.tf +++ b/infrastructure/pe_worker.tf @@ -144,6 +144,10 @@ resource "aws_ecs_task_definition" "pe_worker" { { "name": "ELASTICSEARCH_ENDPOINT", "valueFrom": "${aws_ssm_parameter.es_endpoint.arn}" + }, + { + "name": "SHODAN_QUEUE_URL", + "valueFrom": "${aws_ssm_parameter.shodan_queue_url.arn}" } ] }