Skip to main content
Version: 5.3

ECR Scanning using IAM Roles

AWS ECR - IAM Roles

When the NeuVector containers are deployed in AWS, and an EC2 instance is assigned a role of “EC2 Container Registry” Read Access, the AWS ECR registry can be scanned without an Access Key and Secret Key.

Here is how to create an AWS role and assign it to the node.

Select the Instance

Note that the IAM role is either blank or does not include the ECR role

awsrole

Attach a Role

Select Actions -> Instance Settings -> Attach/Replace IAM Role

awsrole

If you have not previously created the ECR role, click Create New IAM Role. Enter the role name.

attachrole

Select the AWS Service

select

List of Roles

awsroles

Attach the ECR Read Permission to the Role

permissions

Review Your Settings

review

Check the Instance for IAM Role

instance