```const fargateService = new awsx.ecs.FargateServ...
# aws
w
Copy code
const fargateService = new awsx.ecs.FargateService(`fg-unified-service-${packageInfo.packageName}`, {
        cluster: cluster.cluster.arn,
        assignPublicIp: true,
        desiredCount: 2,
        continueBeforeSteadyState: true,
        taskDefinitionArgs: {
            container: {
                image: containerImage.imageUri,
                memory: packageInfo.memory,
                //essential: true,
                portMappings: [
                    {
                        containerPort: packageInfo.containerPort,
                        targetGroup: alb.defaultTargetGroup,
                    }
                ],
            },
        },
    });