Add more regions for APIGateway. Closes #1512.
This commit is contained in:
parent
380710273a
commit
e8a88cf3b2
1 changed files with 5 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ import string
|
||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from boto3.session import Session
|
||||||
import responses
|
import responses
|
||||||
from moto.core import BaseBackend, BaseModel
|
from moto.core import BaseBackend, BaseModel
|
||||||
from .utils import create_id
|
from .utils import create_id
|
||||||
|
|
@ -577,7 +578,9 @@ class APIGatewayBackend(BaseBackend):
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
apigateway_backends = {}
|
apigateway_backends = {}
|
||||||
# Not available in boto yet
|
for region_name in Session().get_available_regions('apigateway'):
|
||||||
for region_name in ['us-east-1', 'us-west-2', 'eu-west-1', 'ap-northeast-1']:
|
|
||||||
apigateway_backends[region_name] = APIGatewayBackend(region_name)
|
apigateway_backends[region_name] = APIGatewayBackend(region_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue