Fix EFS access point ID pattern (#7013)

This commit is contained in:
Ryan McGinty 2023-11-10 04:59:38 -08:00 committed by GitHub
parent 6ef17eee2a
commit c04ff77178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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