https://pulumi.com logo
#aws
Title
# aws
f

fresh-noon-64640

12/08/2023, 12:28 AM
How do you assign a security group to a
awsx.ecs.FargateService()
? I cannot seem to find the right syntax in Typescript.
b

big-energy-3790

12/08/2023, 10:12 AM
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],
  },
  ...
3 Views