내용으로 건너뛰기

why ECS agent got disconnected

0

Hi, I have configured NACL in that i defined required port for ECS instance with source as a VPC CIDR block and for ephemeral ports source is open i.e.(0.0.0.0/0) the ECS agent is active, but for ephemeral ports if source is VPC CIDR block then ECS agent is showing disconnected and deployed remains stuck in provision state. how to solve this issue? Thanks.

1개 답변
1

Hello.

If you are not using a VPC endpoint, it may be difficult to control it with network ACLs.
Because the ECS Agent's connection destination is managed by AWS, the destination CIDR and source CIDR will fluctuate.
In other words, I don't think it's possible to set a fixed CIDR in the NACL inbound or outbound rules.
If you have set up a VPC endpoint, you should be able to connect by allowing HTTPS in the VPC CIDR in the outbound rules and allowing the well-known port in the outbound rules.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/vpc-endpoints.html

전문가

답변함 2년 전

전문가

검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠