Cloudwatch support multiple regions
This commit is contained in:
parent
a9d161e58e
commit
4bbd2a11a7
3 changed files with 21 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from moto.core import BaseBackend
|
||||
import boto.ec2.cloudwatch
|
||||
|
||||
|
||||
class Dimension(object):
|
||||
|
|
@ -99,4 +100,6 @@ class CloudWatchBackend(BaseBackend):
|
|||
return self.metric_data
|
||||
|
||||
|
||||
cloudwatch_backend = CloudWatchBackend()
|
||||
cloudwatch_backends = {}
|
||||
for region in boto.ec2.cloudwatch.regions():
|
||||
cloudwatch_backends[region.name] = CloudWatchBackend()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue