Add missing regions to all services
This commit is contained in:
parent
b8a1f85285
commit
d7ba355a65
38 changed files with 358 additions and 107 deletions
|
|
@ -4,6 +4,7 @@ import datetime
|
|||
import json
|
||||
|
||||
import boto.cognito.identity
|
||||
from boto3 import Session
|
||||
|
||||
from moto.compat import OrderedDict
|
||||
from moto.core import BaseBackend, BaseModel
|
||||
|
|
@ -136,5 +137,13 @@ class CognitoIdentityBackend(BaseBackend):
|
|||
|
||||
|
||||
cognitoidentity_backends = {}
|
||||
for region in boto.cognito.identity.regions():
|
||||
cognitoidentity_backends[region.name] = CognitoIdentityBackend(region.name)
|
||||
for region in Session().get_available_regions("cognito-identity"):
|
||||
cognitoidentity_backends[region] = CognitoIdentityBackend(region)
|
||||
for region in Session().get_available_regions(
|
||||
"cognito-identity", partition_name="aws-us-gov"
|
||||
):
|
||||
cognitoidentity_backends[region] = CognitoIdentityBackend(region)
|
||||
for region in Session().get_available_regions(
|
||||
"cognito-identity", partition_name="aws-cn"
|
||||
):
|
||||
cognitoidentity_backends[region] = CognitoIdentityBackend(region)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue