File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ import { parse } from "yaml";
77interface AccountConfig {
88 account_id : string ;
99 status : "enabled" | "disabled" ;
10- vcpus ?: string ;
11- memory ?: string ;
12- storage ?: string ;
10+ // https://docs.aws.amazon.com/batch/latest/APIReference/API_ResourceRequirement.html
11+ vcpus ?: string ; // Count
12+ memory ?: string ; // MiB, but limited based on vCPU count, see docs
13+ storage ?: string ; // GiB, 20GiB to 200GiB
1314}
1415
1516interface AccountConfigs {
Original file line number Diff line number Diff line change @@ -41,9 +41,10 @@ class PluginStack extends cdk.Stack {
4141 const sqsQueue = new sqs . Queue ( this , `BatchJobQueue-${ toolName } ` ) ;
4242 if ( acctConfig [ `${ toolName } ` ] . status === "enabled" ) {
4343 this . initSubscribeSns ( sqsQueue , snsTopic ) ;
44- this . batchMemory = acctConfig [ `${ toolName } ` ] ?. memory ?? "16384" ;
45- this . batchVcpus = acctConfig [ `${ toolName } ` ] ?. vcpus ?? "4" ;
46- this . batchStorage = acctConfig [ `${ toolName } ` ] ?. storage ?? "20" ;
44+ // https://docs.aws.amazon.com/batch/latest/APIReference/API_ResourceRequirement.html
45+ this . batchMemory = acctConfig [ `${ toolName } ` ] ?. memory ?? "16384" ; // MiB
46+ this . batchVcpus = acctConfig [ `${ toolName } ` ] ?. vcpus ?? "4" ; // CPUs
47+ this . batchStorage = acctConfig [ `${ toolName } ` ] ?. storage ?? "20" ; // GiB
4748 }
4849
4950 const [ jobDefinition , jobQueue ] = this . initBatchFargate ( ) ;
You can’t perform that action at this time.
0 commit comments