In the JAVA SDK it's possible to set the endpoint, see here.
But how to do this for .NET SDK ? And what are the names to use?
Because it seems that a default endpoint "US East (Northern Virginia) Region" is always used.
In the JAVA SDK it's possible to set the endpoint, see here.
But how to do this for .NET SDK ? And what are the names to use?
Because it seems that a default endpoint "US East (Northern Virginia) Region" is always used.
You can also define the aws region in your configuration file using the region code:
Then you can simply instanciate your ec2Client without any region:
Output:
Regions and endpoint are defined here: http://docs.aws.amazon.com/general/latest/gr/rande.html
Regions and Endpoints can be found here.
And example how to connect to EU:
You can also use an endpoint definitions delivered with Amazon SDK:
Since I believe hard-coding such values as endpoint addresses is not a best practice I use more configurable version (i.e. endpoint configured from web.config/app.config):