You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -143,7 +144,9 @@ You can configure `LocalStack.Client` by using entries in the `appsettings.json`
143
144
All the entries above are has shown with default values (except `UseLocalStack`, it's `false` by default).
144
145
So the above entries do not need to be specified.
145
146
146
-
What is entered for the aws credential values in the `Session` section does not matter for LocalStack. `RegionName` is important since LocalStack creates resources by spesified region.
147
+
What is entered for the aws credential values in the `Session` section does not matter for LocalStack.
148
+
149
+
<aname="session-regioname"></a>`RegionName` is important since LocalStack creates resources by spesified region.
147
150
148
151
`Config` section contains important entries for local development. Starting with LocalStack releases after `v0.11.5`, all services are now exposed via the edge service (port 4566) only! If you are using a version of LocalStack lower than v0.11.5, you should set `UseLegacyPorts` to `true`. Edge port can be set to any available port ([see LocalStack configuration section](https://github.com/localstack/localstack#configurations)). If you have made such a change in LocalStack's configuration, be sure to set the same port value to `EdgePort` in the `Config` section. For `LocalStackHost` and `UseSsl` entries, corresponding to the [LocalStack configuration](https://github.com/localstack/localstack#configurations) should be used.
149
152
@@ -186,6 +189,28 @@ It is named as `AddAwsService` to avoid name conflict with `AddAWSService`.
186
189
187
190
<e><b>(Alternatively, `AddAWSServiceLocalStack` method can be used to prevent mix-up with `AddAWSService`.)</b><e>
LocalStack.NET uses [ClientConfig](https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/Amazon.Runtime/ClientConfig.cs) to configure AWS clients to connect LocalStack. `ClientConfig` has two properties called `ServiceUrl` and `RegionEndpoint`, these are mutually exclusive properties. Whichever property is set last will cause the other to automatically be reset to null. LocalStack.NET has given priority to the RegionEndpoint property and the `us-east-1` region is used as the default value (Different regions can be set by using appsettings.json, see [RegionName](#session-regioname) entry. Because of it sets the RegionEndpoint property after the ServiceUrl property, ServiceUrl will be set to null.
195
+
196
+
To override this behavior, the `useServiceUrl` optional parameter can be set to `true` as below.
The `RegionEndpoint` is not applicable for services such as AWS MediaStore, Iot. The optional parameter `useServiceUrl` can be useful for use in such scenarios.
LocalStack.NET uses [ClientConfig](https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/Amazon.Runtime/ClientConfig.cs) to configure AWS clients to connect LocalStack. `ClientConfig` has two properties called `ServiceUrl` and `RegionEndpoint`, these are mutually exclusive properties. Whichever property is set last will cause the other to automatically be reset to null. LocalStack.NET has given priority to the RegionEndpoint property and the `us-east-1` region is used as the default value (Different regions can be set by using appsettings.json, see [RegionName](#session-regioname) entry. Because of it sets the RegionEndpoint property after the ServiceUrl property, ServiceUrl will be set to null.
257
+
258
+
To override this behavior, the `useServiceUrl` optional parameter can be set to `true` as below.
The `RegionEndpoint` is not applicable for services such as AWS MediaStore, Iot. The optional parameter `useServiceUrl` can be useful for use in such scenarios.
273
+
274
+
`CreateClientByInterface<TSerice>` method can also be used to create AWS service, as follows
-`useServiceUrl` parameter added to change client connection behavior. See [useServiceUrl Parameter](#useserviceurl)
452
+
- Readme and SourceLink added to Nuget packages
453
+
#### 3. Bug Fixes
454
+
- Session::RegionName configuration does not honor while creating AWS client ([#15](https://github.com/localstack-dotnet/localstack-dotnet-client/issues/15))
455
+
456
+
Thanks to [petertownsend](https://github.com/petertownsend) for his contribution
Extensions for the LocalStack.NET Client to integrate with .NET Core configuration and dependency injection frameworks. The extensions also provides wrapper around AWSSDK.Extensions.NETCore.Setup to use both LocalStack and AWS side-by-side
0 commit comments