Cloudwatch support multiple regions

This commit is contained in:
beeva-antonioirizar 2016-02-18 18:35:32 +01:00
commit 4bbd2a11a7
3 changed files with 21 additions and 4 deletions

View file

@ -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()