Skip to content

Commit

Permalink
Updated env vars for SQS Connector (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
  • Loading branch information
therahulbhati and vishal-biyani committed Oct 5, 2020
1 parent 16daf9f commit 79b8796
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 414 deletions.
10 changes: 5 additions & 5 deletions aws-sqs-http-connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ The job of the connector is to read messages from the queue, call an HTTP endpoi
- `SOURCE_NAME`: Optional. Name of the Source. Default is "KEDAConnector".
- `MAX_RETRIES`: Maximum number of times an http endpoint will be retried upon failure.
- `CONTENT_TYPE`: Content type used while creating post request.
- `AWS_SQS_URL`: AWS SQS full URL with account id, for example http://localhost:4576/000000000000/.
- `QUEUE_URL`: AWS SQS full URL with account id, for example https://sqs.ap-south-1.amazonaws.com/account_id/QueueName.


#### Ways to connect to AWS
- `AWS_REGION`: Region is mandatory for any aws connection.

1) Through AWS endpoint
- `AWS_ENDPOINT`: SQS endpoint on which it is running, for local it can be http://localhost:4576.
- `AWS_ENDPOINT`: SQS endpoint on which it is running, for local it can be https://sqs.ap-south-1.amazonaws.com.

2) Through AWS key and secret
- `AWS_ACCESS_KEY`: aws access key of your account.
- `AWS_SECRET_KEY`: aws secret key got from your account.
2) Through AWS aws key and secret
- `AWS_ACCESS_KEY_ID`: aws access key of your account.
- `AWS_SECRET_ACCESS_KEY`: aws secret key from your account.

3) Through AWS credentials
- `AWS_CRED_PATH`: Path where aws credentials are present, ex ~/.aws/credentials.
Expand Down
11 changes: 4 additions & 7 deletions aws-sqs-http-connector/go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
module github.com/fission/keda-connectors/aws-sqs-http-connector

go 1.13
go 1.12

require (
github.com/applike/gosoline v0.1.188
github.com/aws/aws-sdk-go v1.34.20
github.com/fission/keda-connectors/common v0.0.0-20200827103613-b77618fd08e1
github.com/goamz/goamz v0.0.0-20180131231218-8b901b531db8
github.com/joho/godotenv v1.3.0
github.com/streadway/amqp v1.0.0
github.com/vaughan0/go-ini v0.0.0-20130923145212-a98ad7ee00ec // indirect
go.uber.org/zap v1.15.0
google.golang.org/appengine v1.4.0
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e // indirect
golang.org/x/text v0.3.3 // indirect
gopkg.in/yaml.v2 v2.2.7 // indirect
)
Loading

0 comments on commit 79b8796

Please sign in to comment.