You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#global services that have no region are signed with the us-east-1 region@signer=Fog::AWS::SignatureV4.new(@aws_access_key_id,@aws_secret_access_key,'us-east-1','iam')
This is not true for AWS GovCloud, the government-specific AWS region.
If the host is set as iam.us-gov.amazonaws.com, a request for Fog::AWS::IAM#roles will return:
Credential should be scoped to a valid region, not 'us-east-1'.
Instead, I'd suggest that the IAM constructor accept a region argument (to mirror other constructors), which defaults to us-east-1, to allow for better GovCloud support.
The text was updated successfully, but these errors were encountered:
In https://github.com/fog/fog-aws/blob/master/lib/fog/aws/iam.rb#L233, the IAM implementation assumes the region us
us-east-1
for all requets.This is not true for AWS GovCloud, the government-specific AWS region.
If the host is set as
iam.us-gov.amazonaws.com
, a request forFog::AWS::IAM#roles
will return:Credential should be scoped to a valid region, not 'us-east-1'.
Instead, I'd suggest that the IAM constructor accept a region argument (to mirror other constructors), which defaults to
us-east-1
, to allow for better GovCloud support.The text was updated successfully, but these errors were encountered: