Elastic IP address becomes unassociated with instance

0

Hi,

So we have an EC2 instance setup with a load balancer and elastic IP....

It works perfectly, except when the Elastic IP address becomes unassociated with the instance.

The EIP addr is still there in the EIP table, just no instance is connected to it. And it does this seemingly at random. It will work for hours - days - then all of a sudden we can't connect. We check the EIP and it's unassociated. We re-associated it, and it's back to working again. (We do not have the Reassociation checkbox marked when you go to associate an EIP, so that shouldn't be causing it.)

Other information:

  1. No one has made changes to aws setting when it disassociates.
  2. It doesn't coincide with bitbucket pipeline build.
  3. Security groups, inbound rules are still all the same and associated with the instance.
  4. We also only have a couple EIP, so we shouldn't be hitting any limits.

So we are at a complete loss. Nothing else seems to change in aws - just the EIP association.

Any ideas? I will happily add more information if needed.

  • Do you have CloudTrail enabled? You could see what identity is executing that command by looking there.

1개 답변
0

Hello,

To check what could be disassociating the Elastic IP on the instance, you can use the CloudTrail tool. You may follow these steps: [1] Open the CloudTrail console. [2] On the left navigation pane, choose Event History. [3] On the lookup attributes drop down list, choose event name. [4] Enter DisassociateAddress as event name value. [5] Choose the timestamp of when the occured. [6] Then check the user agent that executed the API. The user agent will show the agent that disassoiated the Elastic IP.

You can also refer to the following document for more information regarding Cloudtrail event history: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#displaying-cloudtrail-events

Karabo
답변함 2년 전

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

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

질문 답변하기에 대한 가이드라인

관련 콘텐츠