Skip to content

Localstack.Client.Extensions awsoptions argument null exception  #35

@christopher-taormina-zocdoc

Description

I recently tried upgrading the client.extensions package from 1.2.0 -> 1.2.1 and suddenly started getting argument null exceptions during dependency injection of the aws service when UseLocalStack is false. It looks like this exception was added in the latest release, but I cannot tell what the reasoning for this breaking change was.

Our code does not make use of the AWS config section in our code and instead relies on the credential chain to either load local profiles or iam roles when deployed. As such we do not pass in AWSOptions with calls to AddAWSServiceLocalStack

diff link

Expected Behavior

The requested aws service should be returned if the aws options object is null.

Actual Behavior

ArgumentNullException is thrown.

Steps to Reproduce the Problem

  1. Use AddServiceLocalStack<T> without explicitly passing in AWSOptions
  2. ArgumentNullException should be throw when resolving T.

Specifications

  • Version: Localstack.Client.Extensions 1.2.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions