Skip to content

Commit

Permalink
Remove explicit call to use credentials from environment variables (#175
Browse files Browse the repository at this point in the history
)

* use default credentials

* remove else block altogether

* revert client initialization changes
  • Loading branch information
katrogan authored and jprobinson committed Jan 25, 2019
1 parent 95e6953 commit b3a5760
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pubsub/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ func NewPublisher(cfg SNSConfig) (pubsub.Publisher, error) {
if err != nil {
return p, err
}
} else {
creds = credentials.NewEnvCredentials()
}

p.sns = sns.New(sess, &aws.Config{
Expand Down Expand Up @@ -212,8 +210,6 @@ func NewSubscriber(cfg SQSConfig) (pubsub.Subscriber, error) {
if err != nil {
return s, err
}
} else {
creds = credentials.NewEnvCredentials()
}

s.sqs = sqs.New(sess, &aws.Config{
Expand Down

0 comments on commit b3a5760

Please sign in to comment.