From 4803bdcc02407220cba49819d4c8e02b7629e8a0 Mon Sep 17 00:00:00 2001 From: Mike Chang Date: Tue, 29 Aug 2023 15:51:39 -0700 Subject: [PATCH 1/2] Update EFS throughput mode to Elastic Signed-off-by: Mike Chang --- cdk/jenkins_server/jenkins_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdk/jenkins_server/jenkins_server.py b/cdk/jenkins_server/jenkins_server.py index 5a17138..444a0c9 100644 --- a/cdk/jenkins_server/jenkins_server.py +++ b/cdk/jenkins_server/jenkins_server.py @@ -83,7 +83,8 @@ def _create_efs(self): file_system = efs.FileSystem(self, 'FileSystem', vpc=self.vpc, enable_automatic_backups=True, - encrypted=True + encrypted=True, + throughput_mode=ThroughputMode.ELASTIC ) access_point = file_system.add_access_point('AccessPoint', From 8cdabe5f14fdad41cbf93c59fd0edffde20cde12 Mon Sep 17 00:00:00 2001 From: Mike Chang Date: Tue, 29 Aug 2023 16:01:27 -0700 Subject: [PATCH 2/2] Add class context for throughputmode Signed-off-by: Mike Chang --- cdk/jenkins_server/jenkins_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/jenkins_server/jenkins_server.py b/cdk/jenkins_server/jenkins_server.py index 444a0c9..357ac1a 100644 --- a/cdk/jenkins_server/jenkins_server.py +++ b/cdk/jenkins_server/jenkins_server.py @@ -84,7 +84,7 @@ def _create_efs(self): vpc=self.vpc, enable_automatic_backups=True, encrypted=True, - throughput_mode=ThroughputMode.ELASTIC + throughput_mode=efs.ThroughputMode.ELASTIC ) access_point = file_system.add_access_point('AccessPoint',