From 515faca8aa00dcba2a3a2285ea089d71509a86e5 Mon Sep 17 00:00:00 2001 From: Guilherme Martins Crocetti <24530683+gmcrocetti@users.noreply.github.com> Date: Tue, 26 Jul 2022 20:39:32 -0300 Subject: [PATCH] Add extra keys to EC2 `describe-addresses` operation (#5306) --- moto/ec2/models/elastic_ip_addresses.py | 2 +- moto/ec2/responses/elastic_ip_addresses.py | 2 ++ tests/test_ec2/test_elastic_ip_addresses.py | 30 +++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/moto/ec2/models/elastic_ip_addresses.py b/moto/ec2/models/elastic_ip_addresses.py index 71c7b851d..85dacfa42 100644 --- a/moto/ec2/models/elastic_ip_addresses.py +++ b/moto/ec2/models/elastic_ip_addresses.py @@ -37,7 +37,7 @@ class ElasticAddress(TaggedEC2Resource, CloudFormationModel): @staticmethod def cloudformation_type(): - # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-eip.html + # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html return "AWS::EC2::EIP" @classmethod diff --git a/moto/ec2/responses/elastic_ip_addresses.py b/moto/ec2/responses/elastic_ip_addresses.py index f70a7a5a3..eea5e2f6e 100644 --- a/moto/ec2/responses/elastic_ip_addresses.py +++ b/moto/ec2/responses/elastic_ip_addresses.py @@ -145,6 +145,8 @@ DESCRIBE_ADDRESS_RESPONSE = """