Add missing regions to all services
This commit is contained in:
parent
b8a1f85285
commit
d7ba355a65
38 changed files with 358 additions and 107 deletions
|
|
@ -1,7 +1,8 @@
|
|||
from __future__ import unicode_literals
|
||||
import time
|
||||
|
||||
import boto3
|
||||
from boto3 import Session
|
||||
|
||||
from moto.core import BaseBackend, BaseModel
|
||||
|
||||
from moto.core import ACCOUNT_ID
|
||||
|
|
@ -77,5 +78,9 @@ class AthenaBackend(BaseBackend):
|
|||
|
||||
|
||||
athena_backends = {}
|
||||
for region in boto3.Session().get_available_regions("athena"):
|
||||
for region in Session().get_available_regions("athena"):
|
||||
athena_backends[region] = AthenaBackend(region)
|
||||
for region in Session().get_available_regions("athena", partition_name="aws-us-gov"):
|
||||
athena_backends[region] = AthenaBackend(region)
|
||||
for region in Session().get_available_regions("athena", partition_name="aws-cn"):
|
||||
athena_backends[region] = AthenaBackend(region)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue