How do you assign a security group to a `awsx.ecs....
# aws
f
How do you assign a security group to a
awsx.ecs.FargateService()
? I cannot seem to find the right syntax in Typescript.
b
Copy code
const service = new awsx.ecs.FargateService("service", {
  cluster: cluster.arn,
  name: config.appName + "-service",
  enableExecuteCommand: true,
  networkConfiguration: {
    subnets: privateSubnetIds,
    assignPublicIp: false,
    securityGroups: [ecsAppServiceSecurityGroup.id],
  },
  ...