Skip to content

Commit

Permalink
Add shodan_wueue_url to environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Nov 6, 2023
1 parent 0de4ee6 commit 3b05728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/worker/pe-worker-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions infrastructure/pe_worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
]
}
Expand Down

0 comments on commit 3b05728

Please sign in to comment.