AWS Cloudfront: credentials must be bound to a valid region

When connecting to AWS CloudFront through the API, no matter what I do, I get an exception:

Credential should be scoped to a valid region

The same credentials work on any other request for which the account has permissions, for example S3.

+4
source share
1 answer

The exception is caused by access to CloudFront with any set of regions other than "us-east-1". Since CloudFront is mostly useless, you only need to use the default us-east-1 area to talk to it.

http://docs.aws.amazon.com/general/latest/gr/signature-v4-troubleshooting.html

, , , CloudFront Region:

AmazonCloudFrontClient client = new AmazonCloudFrontClient(Amazon.RegionEndpoint.USEast1);

: API ?

: . https://github.com/aws/aws-sdk-net/issues/115

+4

Source: https://habr.com/ru/post/1547366/


All Articles