{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-sdk-cpp/issues/93","labels_url":"https://api.github.com/repos/awslabs/aws-sdk-cpp/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sdk-cpp/issues/93/comments","events_url":"https://api.github.com/repos/awslabs/aws-sdk-cpp/issues/93/events","html_url":"https://github.com/awslabs/aws-sdk-cpp/issues/93","id":130400248,"number":93,"title":"SQS : Credential should be scoped to a valid region, not 'us-east-1'","user":{"login":"chemidy","id":3128770,"avatar_url":"https://avatars.githubusercontent.com/u/3128770?v=3","gravatar_id":"","url":"https://api.github.com/users/chemidy","html_url":"https://github.com/chemidy","followers_url":"https://api.github.com/users/chemidy/followers","following_url":"https://api.github.com/users/chemidy/following{/other_user}","gists_url":"https://api.github.com/users/chemidy/gists{/gist_id}","starred_url":"https://api.github.com/users/chemidy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chemidy/subscriptions","organizations_url":"https://api.github.com/users/chemidy/orgs","repos_url":"https://api.github.com/users/chemidy/repos","events_url":"https://api.github.com/users/chemidy/events{/privacy}","received_events_url":"https://api.github.com/users/chemidy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-01T15:52:06Z","updated_at":"2016-02-02T15:13:01Z","closed_at":null,"body":"I'm receiving strange error when trying to send SQS message.\r\n\r\n**Unable to parse ExceptionName: SignatureDoesNotMatch Message: Credential should be scoped to a valid region, not 'us-east-1'.**\r\n\r\nMy Queue location : **https://sqs.us-west-2.amazonaws.com/XXXX/YYYY**\r\n\r\nIt works like a charm with a us-east location : **https://sqs.us-east-1.amazonaws.com/XXXX/YYYY**\r\n\r\n`// create sqs client\r\n\r\n    Aws::Client::ClientConfiguration config;\r\n    config.scheme = Aws::Http::Scheme::HTTPS;\r\n    Aws::SQS::SQSClient sqsClient{config};\r\n    try {\r\n        // send message\r\n        Aws::SQS::Model::SendMessageRequest sendMessageRequest;\r\n        sendMessageRequest.SetQueueUrl(myQueueUrl);\r\n        sendMessageRequest.SetMessageBody(\"{ 'hello':'toto'}\");\r\n        Aws::SQS::Model::SendMessageOutcome sendMessageOutcome = sqsClient.SendMessage(sendMessageRequest);\r\n\r\n        if(!sendMessageOutcome.IsSuccess() || sendMessageOutcome.GetResult().GetMessageId().length() == 0) {\r\n            std::cout << \"AWS Error on sending SQS Message : \" << sendMessageOutcome.GetError().GetMessage() << std::endl;\r\n            return 2;\r\n        }\r\n    } catch(...) {\r\n        std::cout << \"Exception occurred.\" << std::endl;\r\n    }`"},"comment":{"url":"https://api.github.com/repos/awslabs/aws-sdk-cpp/issues/comments/178625703","html_url":"https://github.com/awslabs/aws-sdk-cpp/issues/93#issuecomment-178625703","issue_url":"https://api.github.com/repos/awslabs/aws-sdk-cpp/issues/93","id":178625703,"user":{"login":"prestomation","id":845970,"avatar_url":"https://avatars.githubusercontent.com/u/845970?v=3","gravatar_id":"","url":"https://api.github.com/users/prestomation","html_url":"https://github.com/prestomation","followers_url":"https://api.github.com/users/prestomation/followers","following_url":"https://api.github.com/users/prestomation/following{/other_user}","gists_url":"https://api.github.com/users/prestomation/gists{/gist_id}","starred_url":"https://api.github.com/users/prestomation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestomation/subscriptions","organizations_url":"https://api.github.com/users/prestomation/orgs","repos_url":"https://api.github.com/users/prestomation/repos","events_url":"https://api.github.com/users/prestomation/events{/privacy}","received_events_url":"https://api.github.com/users/prestomation/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T15:13:01Z","updated_at":"2016-02-02T15:13:01Z","body":"Hi chemidy. On your SQS client, you need to set ClientConfiguration.region to your intended region 'US-WEST-2'\r\n\r\nPlease let us know if you have anymore issues."}}