I am configuring custom cloud watch metrics for windows ec2 instance. The command which I use to invoke the script manually is
C:\Cloudwatch\Memory.ps1 -aws_credential_file C:\Cloudwatch\awscreds.conf -mem_util -mem_used -mem_avail -memory_units Kilobytes
For all the other ec2 instances which I did execute this command gave me the exact result, but this instance gives me the error
A WebException with status NameResolutionFailure was thrown.
There are no issues with setting up the region or accesskey_secretkey. FYI, the region is us-east-1 (N.Virginia). Can anyone please help me at the earliest. Any support would be really appreciated.