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
It looks like the default region for creating the session is always set to us-east-1 here.
However, when in govcloud, you will need to use a govcloud region to get sts creds. Right now I am getting failures to delete global resources in govcloud with error messages like:
ERROR Unable to retrieve iam-group, operation error IAM: ListGroups, https response error StatusCode: 403, RequestID: ab6ffbb4-4b82-48a2-b13a-7714f433a227, api error InvalidClientTokenId: The security token included in the request is invalid
ERROR Unable to retrieve iam-policy, operation error IAM: ListPolicies, https response error StatusCode: 403, RequestID: 1c19965c-6fd6-4861-a32a-112eb3c70c88, api error InvalidClientTokenId: The security token included in the request is invalid
ERROR Unable to retrieve iam-role, operation error IAM: ListRoles, https response error StatusCode: 403, RequestID: 32306d72-b7e2-499e-a608-3f212f79a668, api error InvalidClientTokenId: The security token included in the request is invalid
I think there should be added logic in to check if we are in govcloud. And if so, us us-gov-west-1 as the default region.
The text was updated successfully, but these errors were encountered:
// Note: As there is no actual region named `global` we have to pick one valid region and create the session.
ifregion==GlobalRegion {
returnexternalcreds.Get(DefaultRegion)
}
When it tries to get STS creds for the global region it defaults to us-east-1 and those creds don't work for govcloud.
I believe the default region honor the default profile in the local AWS Profile or even the AWS_REGION environment variable. As it looks right now, we just get sts creds from us-east-1 no matter what.
It looks like the default region for creating the session is always set to us-east-1 here.
However, when in govcloud, you will need to use a govcloud region to get sts creds. Right now I am getting failures to delete global resources in govcloud with error messages like:
I think there should be added logic in to check if we are in govcloud. And if so, us us-gov-west-1 as the default region.
The text was updated successfully, but these errors were encountered: