Pull ECR images to your AWS account
Athena federation connector Lambda functions use container images that are stored in Athena-managed Amazon ECR repositories. To perform security scans on these container images, you must first copy them to an Amazon ECR repository in your account. This section provides step-by-step instructions on how to copy an image to your repository and configure your Lambda function to use the image.
Prerequisites
-
An Athena Federation Connector – The connector can be created through any source, provided it uses a container image.
Note
To verify image deployment, check the Image tab in your Athena Federation Connector Lambda
-
Docker installed and running
-
AWS CLI installed
-
Account credentials with appropriate pull permissions
How to transfer an image
-
Locate the Image URI from your Athena Federation Connector Lambda
account_id_1.dkr.ecr.us-east-1.amazonaws.com/athena-federation-repository:2025.15.1 -
Generate a Docker authentication token for the Athena-managed account:
aws ecr get-login-password --regionregionID| docker login --username AWS --password-stdinathena-managed-registryWhere:
-
regionIDis your deployment region (e.g., us-east-1) -
athena-managed-registryis the registry portion of the Image URI (e.g., account_id_1.dkr.ecr.us-east-1.amazonaws.com)
-
-
Pull the image from the Athena managed account:
docker pullathenaImageURI -
Authenticate Docker to your registry:
aws ecr get-login-password --regionregionID| docker login --username AWS --password-stdincustomer-registryWhere
customer-registryis your ECR registry (e.g., account_id_2.dkr.ecr.us-east-1.amazonaws.com) -
Tag the pulled image for your repository:
docker tagathenaImageURIyourImageURI -
Push the image to your repository:
docker pushyourImageURI -
Update your Athena Federation Connector:
-
Navigate to your Lambda function
-
Select Deploy New Image
-
Enter your new image URI
The Athena federated connector image is now located in your account, which allows you to perform CVE scans on the image.
-