diff --git a/moto/ec2/models/vpcs.py b/moto/ec2/models/vpcs.py index 73ae96e8b..f0da5bc27 100644 --- a/moto/ec2/models/vpcs.py +++ b/moto/ec2/models/vpcs.py @@ -43,7 +43,7 @@ class VPCEndPoint(TaggedEC2Resource, CloudFormationModel): DEFAULT_POLICY = { "Version": "2008-10-17", - "Statement ": [ + "Statement": [ {"Effect": "Allow", "Principal": "*", "Action": "*", "Resource": "*"} ], } diff --git a/tests/test_ec2/test_vpcs.py b/tests/test_ec2/test_vpcs.py index 0849359f3..bb6c320a8 100644 --- a/tests/test_ec2/test_vpcs.py +++ b/tests/test_ec2/test_vpcs.py @@ -993,7 +993,7 @@ def test_create_vpc_endpoint__policy(): # create without policy --> verify the default policy is created default_policy = { "Version": "2008-10-17", - "Statement ": [ + "Statement": [ {"Effect": "Allow", "Principal": "*", "Action": "*", "Resource": "*"} ], }