Setting up the Container Registry Agent for a brokered ECR integration
How to set up the Container Registry Agent for a brokered Amazon ECR integration with Snyk
Terminology and diagram for brokered ECR integration

Summary of steps for brokered ECR integration
Step 1: Run the Container Registry Agent with a IAM User or IAM Role
Example: Create a dedicated EC2 Service Role and load credentials from AWS Identity and Access Management (IAM) roles for Amazon EC2
Create a role
Create a policy to allow the EC2 role to assume another role
Attach the role to the EC2 machine running the Container Registry Agent
Example: Creating a dedicated user and providing its credentials through environment variables
Create a user
Create a policy to allow the user to assume a role
Use the credentials when running the Container Registry Agent
Step 2: Create Snyk ECR Service Role and enable cross-account access to ECR
1. Create a read-only ECR policy to be used by the Snyk ECR Service Role
2. Create Snyk ECR Service Role with which to implement the policy
3. Harden the usability scope of the Snyk ECR Service Role
Step 3: Harden the usability scope of the IAM Role or IAM User used by the Container Registry Agent
Step 4: Provide Snyk ECR Service Role ARN and external ID to the Broker Client
PreviousSnyk Broker - Container Registry AgentNextInstall Broker for Container Registry Agent using Helm
Last updated
Was this helpful?

