File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ interface AccountConfig {
99 status : "enabled" | "disabled" ;
1010 vcpus ?: string ;
1111 memory ?: string ;
12+ storage ?: string ;
1213}
1314
1415interface AccountConfigs {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class PluginStack extends cdk.Stack {
2424 private adminAccountId : string ;
2525 private batchMemory : string ;
2626 private batchVcpus : string ;
27+ private batchStorage : string ;
2728
2829 constructor ( scope : Construct , id : string , props ?: cdk . StackProps ) {
2930 super ( scope , id , props ) ;
@@ -42,6 +43,7 @@ class PluginStack extends cdk.Stack {
4243 this . initSubscribeSns ( sqsQueue , snsTopic ) ;
4344 this . batchMemory = acctConfig [ `${ toolName } ` ] ?. memory ?? "16384" ;
4445 this . batchVcpus = acctConfig [ `${ toolName } ` ] ?. vcpus ?? "4" ;
46+ this . batchStorage = acctConfig [ `${ toolName } ` ] ?. storage ?? "20" ;
4547 }
4648
4749 const [ jobDefinition , jobQueue ] = this . initBatchFargate ( ) ;
@@ -137,6 +139,9 @@ class PluginStack extends cdk.Stack {
137139 value : this . batchMemory ,
138140 } ,
139141 ] ,
142+ ephemeralStorage : {
143+ sizeInGib : this . batchStorage ,
144+ } ,
140145 environment : variableConfigJson ,
141146 } ,
142147 platformCapabilities : [ "FARGATE" ] ,
You can’t perform that action at this time.
0 commit comments