Ensure that all EKS cluster node groups use the "AmazonEC2ContainerRegistryReadOnly" managed policy to access Amazon ECR repositories. "AmazonEC2ContainerRegistryReadOnly" is an AWS-managed policy that provides read-only access to Amazon EC2 Container Registry (ECR) repositories.
excellence
EKS cluster node groups leverage AWS-managed policies to establish secure and controlled interactions with the Amazon Elastic Container Registry (ECR). By using the "AmazonEC2ContainerRegistryReadOnly" managed policy, precise permissions are defined, mitigating the risks associated with unauthorized access or unintended actions. The "AmazonEC2ContainerRegistryReadOnly" policy enables granular control over ECR resources, granting EKS nodes only the essential permissions necessary for retrieving container images. Furthermore, the utilization of AWS-managed policies such as "AmazonEC2ContainerRegistryReadOnly" simplifies management and updates as they are consistently maintained and refreshed by AWS. Lastly, by adhering to compliance standards, AWS-managed IAM policies contribute to meeting regulatory requirements while accessing ECR, ensuring a secure and compliant environment for managing container images within EKS clusters.
Audit
To determine if your EKS cluster node groups implement the "AmazonEC2ContainerRegistryReadOnly" policy, perform the following operations:
Remediation / Resolution
To ensure that your EKS cluster node groups are configured to use the "AmazonEC2ContainerRegistryReadOnly" managed policy to access Amazon ECR repositories, perform the following operations:
References
- AWS Documentation
- Amazon EKS FAQs
- Amazon EKS clusters
- Creating a managed node group
- AmazonEC2ContainerRegistryReadOnly
- AWS Command Line Interface (CLI) Documentation
- list-clusters
- list-nodegroups
- describe-nodegroup
- list-attached-role-policies
- attach-role-policy