sparse-intern-71089
10/07/2022, 3:08 PMgreen-stone-37839
10/07/2022, 8:39 PMconst cluster = new awsx.ecs.Cluster("cluster");
const appService = new awsx.ecs.FargateService("app-svc", {
cluster: cluster,
taskDefinitionArgs: {
container: {
image: "nginx",
cpu: 102 /*10% of 1024*/,
memory: 5000 /*MB*/,
portMappings: [{
hostPort: 80,
containerPort: 80,
protocol: "tcp"
}],
},
},
desiredCount: 1,
});
What version of awsx
are you using?kind-hamburger-15227
10/10/2022, 4:33 PMcat package-lock.json| grep awsx
"@pulumi/awsx": "^0.40.0",
"node_modules/@pulumi/awsx": {
"resolved": "<https://registry.npmjs.org/@pulumi/awsx/-/awsx-0.40.0.tgz>",
"@pulumi/awsx": {
"resolved": "<https://registry.npmjs.org/@pulumi/awsx/-/awsx-0.40.0.tgz>",
kind-hamburger-15227
10/10/2022, 4:34 PMconst listener = new awsx.lb.NetworkLoadBalancer('lb')
.createTargetGroup('group', { port: 8888, protocol: 'TCP' })
.createListener('listener', {
port: 80,
protocol: 'TCP',
})
kind-hamburger-15227
10/10/2022, 4:38 PM