Skip to content

Commit

Permalink
UPDATED to use AWS session with options (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanValentine authored Nov 20, 2020
1 parent d4e874e commit bf02a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func SetTracer(tracer TraceAdapter) Option {
// Override these services by using the Set methods.
func WithAWSBackend() Option {
return func(args *Options) {
sess := session.Must(session.NewSession())
sess := session.Must(session.NewSessionWithOptions(session.Options{}))
args.QueueAdapter = queue.NewSQSAdapter(sqs.New(sess))
args.FunctionAdapter = function.NewLambdaAdapter(lambda.New(sess))
args.AutomateAdapter = automate.NewSSMAdapter(ssm.New(sess))
Expand Down
2 changes: 1 addition & 1 deletion pkg/pubsub/sns.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewSNSAdapter(client *sns.SNS) *SNSAdapter {
}

func (sa *SNSAdapter) parseOpts(opts types.Options) map[string]*sns.MessageAttributeValue {
atts := make(map[string]*sns.MessageAttributeValue, 0)
atts := make(map[string]*sns.MessageAttributeValue)
for key, val := range opts {
attributeValue, ok := val.(*sns.MessageAttributeValue)
if ok {
Expand Down

0 comments on commit bf02a8c

Please sign in to comment.