QuestionQ14

VerifiedSecurity and Compliance

A security team is worried that a developer could inadvertently associate an Elastic IP address with an Amazon EC2 instance in production. Developers must not be permitted to associate an Elastic IP address with an instance. The security team must be alerted whenever any production server has an Elastic IP address.

How can this task be automated?

Explanation

An explicit IAM deny for ec2:AssociateAddress applied to the developers’ IAM group prevents developers from associating an Elastic IP address, including when another applicable policy allows the action. ec2:AssociateAddress is the EC2 permission that associates an Elastic IP address with an instance or network interface. A custom AWS Config rule can evaluate EC2 instance configuration, identify production-tagged instances with Elastic IP associations, and report the noncompliant configuration for alerting.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!