Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
brettpalmberg committed Oct 27, 2021
1 parent a39d10b commit 0924a0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion async_geoprocess/geoprocess_worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
if CONFIG.AWS_ACCESS_KEY_ID is None:
# Running in AWS
# Using IAM Role for Credentials
CLIENT = boto3.resource('sqs')
if CONFIG.ENDPOINT_URL_SQS:
CLIENT = boto3.resource(
'sqs',
endpoint_url=CONFIG.ENDPOINT_URL_SQS
)
else:
CLIENT = boto3.resource('sqs')
else:
# Local Testing
# ElasticMQ with Credentials via AWS_ environment variables
Expand Down

0 comments on commit 0924a0a

Please sign in to comment.