diff --git a/lib/ansible/modules/cloud/amazon/ec2_vpc_nat_gateway.py b/lib/ansible/modules/cloud/amazon/ec2_vpc_nat_gateway.py index b96ecbbb20..d4fd1f3b93 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_vpc_nat_gateway.py +++ b/lib/ansible/modules/cloud/amazon/ec2_vpc_nat_gateway.py @@ -684,7 +684,7 @@ def create(client, subnet_id, allocation_id, client_token=None, else: result = DRY_RUN_GATEWAYS[0] result['create_time'] = datetime.datetime.utcnow() - result['nat_gateway_addresses'][0]['Allocation_id'] = allocation_id + result['nat_gateway_addresses'][0]['allocation_id'] = allocation_id result['subnet_id'] = subnet_id success = True