After deploying the ECS with an application load b...
# typescript
f
After deploying the ECS with an application load balancer,
curl
the load balancer throws this error I think my
portMappings
config is correct because I expose port 8080 in my Docerfile and I specify the
containerPort
to be 8080 in the
portMappings
field, e.g.
Copy code
const service = new awsx.ecs.FargateService("my-service", {
  cluster: cluster,
  taskDefinitionArgs: {
    container: {
      image: image,
      cpu: 512,
      memory: 128,
      essential: true,
      portMappings: [
        {
          containerPort: 8080,
          hostPort: 8080,
        },
      ],
    },
  },
});
But I noticed the application load balancer does not have any inbound rules in its security group, could this be the reason why I am getting the error?
Copy code
[2/09/22 6:42] ➜  pulumi-quickstart curl <http://nginx-lb-6040493-1557012872.us-east-1.elb.amazonaws.com>
curl: (28) Failed to connect to <http://nginx-lb-6040493-1557012872.us-east-1.elb.amazonaws.com|nginx-lb-6040493-1557012872.us-east-1.elb.amazonaws.com> port 80 after 75034 ms: Operation timed out
I will try add an inbound rule to the ALB’s security group to allow traffic from anywhere and test