File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
.tools/test/stacks/plugin/typescript Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class PluginStack extends cdk.Stack {
2424 private adminAccountId : string ;
2525 private batchMemory : string ;
2626 private batchVcpus : string ;
27- private batchStorage : string ;
27+ private batchStorage : number ;
2828
2929 constructor ( scope : Construct , id : string , props ?: cdk . StackProps ) {
3030 super ( scope , id , props ) ;
@@ -44,7 +44,8 @@ class PluginStack extends cdk.Stack {
4444 // https://docs.aws.amazon.com/batch/latest/APIReference/API_ResourceRequirement.html
4545 this . batchMemory = acctConfig [ `${ toolName } ` ] ?. memory ?? "16384" ; // MiB
4646 this . batchVcpus = acctConfig [ `${ toolName } ` ] ?. vcpus ?? "4" ; // CPUs
47- this . batchStorage = acctConfig [ `${ toolName } ` ] ?. storage ?? "20" ; // GiB
47+ const batchStorage = Number ( acctConfig [ `${ toolName } ` ] ?. storage ?? undefined ) ;
48+ this . batchStorage = isNaN ( batchStorage ) ? 20 : batchStorage ; // GiB
4849 }
4950
5051 const [ jobDefinition , jobQueue ] = this . initBatchFargate ( ) ;
@@ -141,7 +142,7 @@ class PluginStack extends cdk.Stack {
141142 } ,
142143 ] ,
143144 ephemeralStorage : {
144- sizeInGib : this . batchStorage ,
145+ sizeInGiB : this . batchStorage ,
145146 } ,
146147 environment : variableConfigJson ,
147148 } ,
You can’t perform that action at this time.
0 commit comments