6

We had a situation recently where an elastic IP address assigned to a production server mysteriously became disassociated from that server. We have had this same thing happen in the past to other (fortunately, non-production) servers. We have several admins in the console, but no one is owning up to the mistake. Is there some way to audit AWS console activities?

1
  • Have you ever stopped the instances (not restarted)? This will cause the EIP to become disassociated AFAIK.
    – Peter
    Feb 17, 2014 at 23:54

3 Answers 3

8

edit: AWS has since released CloudTrail, which satisfies this need.

No. If you need auditing, you'll likely need to wrap your own frontend around the AWS APIs. If you have paid support AWS may be able to look at their internal logs, I don't know.

One thing to note is that a non-VPC EC2 instance that's stopped will lose its EIP. VPC instances retain their association (and their internal IP, too) during stoppages.

2
  • Ah -- I didn't realize that about stopped VPC instances. Good to know. May 10, 2013 at 18:18
  • 3
    Basically, if you're going to do anything beyond a hobby project on EC2, use a VPC. AWS is actually making this default for new accounts.
    – ceejayoz
    May 10, 2013 at 18:19
1

Depending on your region, I agree with forforf and would recommend checking out CloudTrail. You might also want to review your current security posture within AWS as a whole.

We ran into the same issue with more than 20 admins in AWS. There were way too many cooks in the kitchen. We then decided to give SU access to our 2 enterprise architects, and then segmented access in IAM based on the admins role. Dev, Operations, Engineering, Security, etc. That way if there was a change made, we could at least figure out who made the change between 1-2 people, instead of 20..

Also we implemented Chef as well, which helped with audits, etc. Depends on your environment, needs, etc. though.

For your situation-if it was me...I would gather the IPs of all my instances and click on Elastic Network Interfaces in the AWS console. Search for ENIs via those IP addresses. Click on each ENI and change the termination behavior on termination to False. Then go into IAM and deny permissions for EIP attachment and detachment to multiple admins.

I would also enable termination protection for each instance. If your in a VPC environment any EIP associated or internal IP for that matter will not change upon instance stop or restart...if the instance is in ec2 classic it will.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .