From 37f643ecb40557d3d48d8f754b023601d63c9287 Mon Sep 17 00:00:00 2001 From: Dan Tenenbaum Date: Thu, 3 Nov 2016 14:12:20 -0700 Subject: [PATCH] bump tag limit from 10 to 50 to align with actual AWS limit --- moto/ec2/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 1e43dbb9e..902ebdac4 100755 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -815,9 +815,9 @@ class TagBackend(object): raise InvalidParameterValueErrorTagNull() for resource_id in resource_ids: if resource_id in self.tags: - if len(self.tags[resource_id]) + len([tag for tag in tags if not tag.startswith("aws:")]) > 10: + if len(self.tags[resource_id]) + len([tag for tag in tags if not tag.startswith("aws:")]) > 50: raise TagLimitExceeded() - elif len([tag for tag in tags if not tag.startswith("aws:")]) > 10: + elif len([tag for tag in tags if not tag.startswith("aws:")]) > 50: raise TagLimitExceeded() for resource_id in resource_ids: for tag in tags: