Skip to content

Commit 37f1b53

Browse files
committed
Weathertop: Allow plugin stacks to specify ephemeral storage sizes
1 parent 53514f4 commit 37f1b53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.tools/test/stacks/config/targets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ interface AccountConfig {
99
status: "enabled" | "disabled";
1010
vcpus?: string;
1111
memory?: string;
12+
storage?: string;
1213
}
1314

1415
interface AccountConfigs {

.tools/test/stacks/plugin/typescript/plugin_stack.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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"],

0 commit comments

Comments
 (0)