Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Correct sigv4_region When No endpointPrefix #1072

Merged
merged 2 commits into from
Jan 22, 2016
Merged

Conversation

awood45
Copy link
Member

@awood45 awood45 commented Jan 22, 2016

Aws::IoTDataPlane::Client intentionally does not define endpointPrefix
in the configured API metadata as a mechanic to force the user to supply
an :endpoint value on client construction.

The previous attempted fix failed to note that, in absence of
endpontPrefix, all endpoints will match with the first selector,
hard-coded to "us-east-1". This change will check for this case, and use
your client configured region when it occurs.

Aws::IoTDataPlane::Client intentionally does not define `endpointPrefix`
in the configured API metadata as a mechanic to force the user to supply
an `:endpoint` value on client construction.

The previous attempted fix failed to note that, in absence of
`endpontPrefix`, all endpoints will match with the first selector,
hard-coded to "us-east-1". This change will check for this case, and use
your client configured region when it occurs.

* Resolves GitHub Issue #1070
* Related to GitHub Issue #1052
* Fixes Regression In GitHub Pull Request #1053
@trevorrowe
Copy link
Member

The change looks good, but I would be more inclined to see a functional test for a specific service to exercise this. Try adding a test to the IoT data plane client spec that does this.

Adds a functional test for non-us-east-1 regions, regarding extraction
of the SigV4 signing region.
awood45 added a commit that referenced this pull request Jan 22, 2016
Get Correct sigv4_region When No endpointPrefix
@awood45 awood45 merged commit 7ce8874 into master Jan 22, 2016
awood45 added a commit that referenced this pull request Jan 28, 2016
@awood45 awood45 deleted the signingregion branch March 31, 2016 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants