Skip to content

Commit eb0bfa9

Browse files
fix: remove duplicate ECS validation block after rebase
1 parent e47770e commit eb0bfa9

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

cdk/src/constructs/task-orchestrator.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,6 @@ export class TaskOrchestrator extends Construct {
187187
const handlersDir = path.join(__dirname, '..', 'handlers');
188188
const maxConcurrent = props.maxConcurrentTasksPerUser ?? 3;
189189

190-
// Validate ECS props are all-or-nothing
191-
const ecsProps = [props.ecsClusterArn, props.ecsTaskDefinitionArn, props.ecsSubnets, props.ecsSecurityGroup, props.ecsContainerName];
192-
const ecsPropsProvided = ecsProps.filter(p => p !== undefined);
193-
if (ecsPropsProvided.length > 0 && ecsPropsProvided.length < ecsProps.length) {
194-
throw new Error('ECS compute strategy requires all of: ecsClusterArn, ecsTaskDefinitionArn, ecsSubnets, ecsSecurityGroup, ecsContainerName');
195-
}
196-
197190
this.fn = new lambda.NodejsFunction(this, 'OrchestratorFn', {
198191
entry: path.join(handlersDir, 'orchestrate-task.ts'),
199192
handler: 'handler',

0 commit comments

Comments
 (0)