title: Getting Error(No RegionEndpoint or ServiceURL configured) on EC2 instance even if IAM roles are setup in .net web application
body: <p>I've configured IAM roles for my different services on EC2 server.with the help of below link  <a href="https://aws.amazon.com/blogs/developer/iam-roles-for-amazon-ec2-instances-access-key-management-for-net-applications-part-4/" rel="nofollow noreferrer">IAM Role Setup</a>. According to AWS docs after setting IAM role we don't need any credentials to be stored in our application it takes the credential details from EC2 instance metadata.
  However, I am getting error when I removed AWS key from my  web.config.<strong>"No RegionEndpoint or ServiceURL configured"</strong> After some time when I added region point entry to my Web.config  entry then it started working.</p>
  
  <pre><code>&lt;add key="AWSRegion" value="us-east-1" /&gt;
  </code></pre>
  
  <p>Please note in another application where I am accessing only AWS DynamoDB on the same server, it works without adding region point entry in config. Any kind of help is appreciated.Thank you in advance. </p>