Skip to content

Commit b63f441

Browse files
committed
chore: wip
chore: wip
1 parent 5331efc commit b63f441

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.stacks/core/cloud/src/cloud.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,13 @@ export class StacksCloud extends Stack {
424424
})
425425

426426
const service = new ecs.FargateService(this, 'WebService', {
427+
serviceName: `${this.appName}-${appEnv}-web-service`,
427428
cluster: ecsCluster,
428429
taskDefinition,
429430
desiredCount: 2,
430431
assignPublicIp: true,
431-
vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },
432432
minHealthyPercent: 75,
433+
securityGroups: [serviceSecurityGroup],
433434
})
434435

435436
this.compute.fargate = service
@@ -517,8 +518,12 @@ export class StacksCloud extends Stack {
517518
},
518519
vpc,
519520
vpcSubnets: [
520-
{ subnetGroupName: `${this.appName}-${appEnv}-private-subnet-1` },
521-
{ subnetGroupName: `${this.appName}-${appEnv}-private-subnet-2` },
521+
this.vpc.selectSubnets({
522+
subnetGroupName: `${this.appName}-${appEnv}-private-subnet-1`,
523+
}),
524+
this.vpc.selectSubnets({
525+
subnetGroupName: `${this.appName}-${appEnv}-private-subnet-2`,
526+
}),
522527
],
523528
capacity: {
524529
masterNodes: 3,

0 commit comments

Comments
 (0)