
Features
- AWS IAM Authentication: Secure access using AWS access keys or IAM roles
- Cross-Region Support: Access ECR repositories across all AWS regions
- Public & Private Registries: Support for both ECR Public and ECR Private
- Cross-Account Access: Scan images from different AWS accounts with proper permissions
- AWS Services Integration: Seamless integration with ECS, EKS, and other AWS services
Setup Requirements
To connect your Amazon ECR:- AWS Account: Active AWS account with ECR repositories
- IAM Credentials: AWS access keys or IAM role with ECR permissions
- ECR Permissions:
ecr:GetAuthorizationToken
,ecr:BatchGetImage
,ecr:GetDownloadUrlForLayer
- Region Configuration: Specify the AWS region for your ECR repositories
Required IAM Permissions
Your AWS IAM user or role needs these permissions:Configuration Steps
1
Create IAM User/Role
Create an IAM user or role with ECR read permissions
2
Generate Access Keys
Create AWS access keys for the IAM user (if not using roles)
3
Configure CybeDefend
Add ECR connection with AWS credentials and region information
4
Verify Access
Test the connection and verify repository access
Registry URL Formats
Amazon ECR uses region-specific URLs:Authentication Methods
- AWS Access Keys
- IAM Roles
Cross-Account Access
For scanning images from different AWS accounts:Integration with AWS Services
Amazon ECS Integration:ECR Public Registry
Access public ECR repositories without authentication:Repository Management
Lifecycle Policies
Configure image lifecycle policies to manage repository size and costs
Image Scanning
Enable ECR’s built-in vulnerability scanning alongside CybeDefend
Repository Policies
Set up repository-level permissions and access controls
Encryption
Use KMS encryption for images at rest in ECR
Common Issues & Solutions
Authentication Errors:- Verify AWS credentials are valid and not expired
- Check IAM permissions for ECR access
- Ensure correct region configuration
- Confirm repository name and region are correct
- Check if repository exists in the specified account
- Verify cross-account permissions if applicable
- Ensure the image tag exists
- Check network connectivity to ECR endpoints
- Verify VPC endpoint configuration if using private subnets
- ECR has service quotas for API calls
- Implement exponential backoff for retries
- Consider using ECR Public for frequently accessed base images
Store AWS credentials securely and follow AWS security best practices. Use IAM roles when possible instead of long-term access keys.
Related: Container Image Scanning · Docker Hub · GitLab Registry