diff --git a/moto/ec2/models.py b/moto/ec2/models.py index eaef6cbd6..e3e55cad7 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -226,7 +226,9 @@ class StateReason(object): class TaggedEC2Resource(BaseModel): def get_tags(self, *args, **kwargs): - tags = self.ec2_backend.describe_tags(filters={"resource-id": [self.id]}) + tags = [] + if self.id: + tags = self.ec2_backend.describe_tags(filters={"resource-id": [self.id]}) return tags def add_tag(self, key, value): diff --git a/moto/ec2/responses/elastic_ip_addresses.py b/moto/ec2/responses/elastic_ip_addresses.py index e25922706..0cf549a83 100644 --- a/moto/ec2/responses/elastic_ip_addresses.py +++ b/moto/ec2/responses/elastic_ip_addresses.py @@ -151,6 +151,16 @@ DESCRIBE_ADDRESS_RESPONSE = """