@@ -159,7 +159,7 @@ export class BopsPlanningStack extends cdk.Stack {
159159 // Storage (S3)
160160 const storage = new StorageConstruct ( this , 'Storage' ) ;
161161
162- // Compute (ECS, ALB, seed task)
162+ // Compute (ECS, ALB) — seed runs inside web entrypoint, no separate task
163163 const compute = new ComputeConstruct ( this , 'Compute' , {
164164 vpc : networking . vpc ,
165165 albSecurityGroup : networking . albSecurityGroup ,
@@ -172,14 +172,6 @@ export class BopsPlanningStack extends cdk.Stack {
172172 osMapApiKeyParam : osMapApiKeyParam ,
173173 } ) ;
174174
175- // The seed custom resource must wait for the Aurora writer instance (not just the cluster).
176- // The cluster endpoint resolves when the cluster resource is created, but you cannot connect
177- // until the writer instance is fully available. Without this, the seed ECS task starts before
178- // the database is actually reachable, causing it to fail.
179- const writerInstance = database . cluster . node . findChild ( 'writer' ) ;
180- const seedCR = compute . node . findChild ( 'SeedCustomResource' ) ;
181- seedCR . node . addDependency ( writerInstance ) ;
182-
183175 // CloudFront
184176 const cdn = new CloudFrontConstruct ( this , 'CDN' , {
185177 loadBalancer : compute . loadBalancer ,
0 commit comments