I have upgraded awsjavasdk jar from 1.9.34 to 1.11.618 version.
I am facing Credential should be scoped to a valid region, not 'eu-west-1' issue when ever running the code.
I have upgraded awsjavasdk jar from 1.9.34 to 1.11.618 version.
I am facing Credential should be scoped to a valid region, not 'eu-west-1' issue when ever running the code.
According to some other posts I found, sometimes services are "regionless" and prefer us-east-1 as the region, even though the resources are in other regions.
Ref: https://forums.aws.amazon.com/thread.jspa?messageID=821713 AWS Cloudfront: Credential should be scoped to a valid region
In my case, I was working with Route53 resources in Dublin, and setting the region to us-east-1 in the CLI command fixed the problem.