Elastic Compute Cloud (EC2) - Cannot connect to EC2 instance
Closed this issue · 1 comments
Darnol commented
I'm trying to follow the tutorial for a EC2 service on localstack (https://docs.localstack.cloud/user-guide/aws/elastic-compute-cloud/)
I was able to set up everything and start up the instance.
However, at the step where I run
localstack logs
I get the following output
LocalStack version: 3.1.1.dev
LocalStack Docker container id: 3509e1186296
LocalStack build date: 2024-02-19
LocalStack build git hash: 0cab90a4c
2024-02-28T22:10:30.477 INFO --- [-functhread4] hypercorn.error : Running on https://0.0.0.0:4566 (CTRL + C to quit)
2024-02-28T22:10:30.477 INFO --- [-functhread4] hypercorn.error : Running on https://0.0.0.0:4566 (CTRL + C to quit)
Ready.
2024-02-28T22:11:51.386 INFO --- [ asgi_gw_0] localstack.request.aws : AWS ec2.AuthorizeSecurityGroupIngress => 200
2024-02-28T22:11:54.955 INFO --- [ asgi_gw_1] localstack.request.aws : AWS ec2.DescribeSecurityGroups => 200
2024-02-28T22:12:23.584 INFO --- [ asgi_gw_1] localstack.request.aws : AWS ec2.RunInstances => 200
2024-02-28T22:13:12.951 WARN --- [ asgi_gw_0] l.aws.handlers.internal : Unable to find resource handler for path: /_localstack/stackinfo
2024-02-28T22:13:12.953 INFO --- [ asgi_gw_0] localstack.request.http : GET /_localstack/stackinfo => 404
2024-02-28T22:13:20.149 INFO --- [ asgi_gw_0] localstack.request.http : OPTIONS / => 204
2024-02-28T22:13:20.189 INFO --- [ asgi_gw_0] localstack.request.aws : AWS ec2.DescribeInstances => 200
I do not receive any information about accessibility of the instance as described in the tutorial, like this:
2023-08-16T17:18:29.702 INFO --- [ asgi_gw_0] l.s.ec2.vmmanager.docker : Instance i-b07acefd77a3c415f will be accessible via SSH at: 127.0.0.1:12862, 172.17.0.4:22
2023-08-16T17:18:29.702 INFO --- [ asgi_gw_0] l.s.ec2.vmmanager.docker : Instance i-b07acefd77a3c415f port mappings (container -> host): {'8000/tcp': 29043, '22/tcp': 12862}
Does anybody know how to proceed here? Any help would be greatly appreciated.
MarcelStranak commented
Hello @Darnol,
I could not replicate the problem. Can you please provide the complete LocalStack configuration and the detailed example to recreate the problem?