Cloudwatch support multiple regions
This commit is contained in:
parent
a9d161e58e
commit
4bbd2a11a7
3 changed files with 21 additions and 4 deletions
|
|
@ -1,2 +1,11 @@
|
|||
from .models import cloudwatch_backend
|
||||
mock_cloudwatch = cloudwatch_backend.decorator
|
||||
from .models import cloudwatch_backends
|
||||
from ..core.models import MockAWS
|
||||
|
||||
|
||||
cloudwatch_backend = cloudwatch_backends['us-east-1']
|
||||
|
||||
def mock_cloudwatch(func=None):
|
||||
if func:
|
||||
return MockAWS(cloudwatch_backends)(func)
|
||||
else:
|
||||
return MockAWS(cloudwatch_backends)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue