From c04ff771786d75bd0b872673898a7d38edc6f461 Mon Sep 17 00:00:00 2001 From: Ryan McGinty Date: Fri, 10 Nov 2023 04:59:38 -0800 Subject: [PATCH] Fix EFS access point ID pattern (#7013) --- moto/efs/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/efs/models.py b/moto/efs/models.py index 90bae3e1e..3512465d2 100644 --- a/moto/efs/models.py +++ b/moto/efs/models.py @@ -54,8 +54,8 @@ class AccessPoint(BaseModel): root_directory: Dict[str, str], context: "EFSBackend", ): - self.access_point_id = mock_random.get_random_hex(8) - self.access_point_arn = f"arn:aws:elasticfilesystem:{region_name}:{account_id}:access-point/fsap-{self.access_point_id}" + self.access_point_id = f"fsap-{mock_random.get_random_hex(8)}" + self.access_point_arn = f"arn:aws:elasticfilesystem:{region_name}:{account_id}:access-point/{self.access_point_id}" self.client_token = client_token self.file_system_id = file_system_id self.name = name