refined-vegetable-66224
02/10/2020, 3:24 PMweb-${envName}
, {`
port: 80,
external: true,
protocol: "HTTP",
defaultAction: {
type: "redirect",
redirect: {
protocol: "HTTPS",
port: "443",
statusCode: "HTTP_301",
},
},
});
const httpsPort = alb.createListener("blah", {
port: 443,
protocol: "HTTPS",
external: true,
defaultAction: {
type: "forward",
targetGroupArn: "your target group arn here"
},
certificateArn: "your certificate arn here"
});
`const appService = new awsx.ecs.FargateService(express-svc-${envName}
, {`
cluster,
taskDefinitionArgs: {
container: {
image: img,
cpu: 102 /*10% of 1024*/,
memory: 1000 /*MB*/,
portMappings: [ httpPort, httpsPort ],
},
},
desiredCount: 5,
});