title: How to set default location when calling amazon client
body: <p>I have code base running in Amazon EC2 instances, and it will read region, and other access keys and all from there itself. So while creating the client I don't need to pass any thing, I can just use empty contructor.</p>
  
  <pre><code>// Empty Constructor
  private static AmazonCloudWatchLogsClient _logClient;
  public static AmazonCloudWatchLogsClient logClient =&gt;
  _logClient ?? (_logClient = new AmazonCloudWatchLogsClient());
  </code></pre>
  
  <p>But my manager wants a FALL BACK location to be set to US-EAST-1 , if my code base fails to read somehow find/read the region from ECS. How to acheive that.</p>
  
  <p>Can I do something like below.</p>
  
  <pre><code> private static AmazonCloudWatchLogsClient _logClient;
   public static AmazonCloudWatchLogsClient logClient =&gt; 
  _logClient ?? (_logClient = new AmazonCloudWatchLogsClient(RegionEndPoint.USEAST1)); 
  </code></pre>
  
  <p>You can see I added a region, but if I do this I think it will overwrite the region that will be passed by EC2 instance. Am I right? All I want is to be able to have a fall back region. How to set that. please help me. Thanks!</p>