fast-island-38778
09/02/2022, 10:55 PMcurl
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.
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?
[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