Skip to content

Commit 673ac10

Browse files
committed
Weathertop: Allow plugin stacks to specify ephemeral storage sizes
1 parent 28573a9 commit 673ac10

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.tools/test/stacks/config/types.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);
@@ -41,6 +42,7 @@ class PluginStack extends cdk.Stack {
4142
this.initSubscribeSns(sqsQueue, snsTopic);
4243
this.batchMemory = acctConfig[`${toolName}`]?.memory ?? "16384";
4344
this.batchVcpus = acctConfig[`${toolName}`]?.vcpus ?? "4";
45+
this.batchStorage = acctConfig[`${toolName}`]?.storage ?? "20";
4446
}
4547
const [jobDefinition, jobQueue] = this.initBatchFargate();
4648
const batchFunction = this.initBatchLambda(jobQueue, jobDefinition);
@@ -134,6 +136,9 @@ class PluginStack extends cdk.Stack {
134136
value: this.batchMemory,
135137
},
136138
],
139+
ephemeralStorage: {
140+
sizeInGib: this.batchStorage,
141+
}
137142
},
138143
platformCapabilities: ["FARGATE"],
139144
});

0 commit comments

Comments
 (0)