# Issue with aws\_ecr\_repository\_images not syncing ImageScanFindings correctly

**URL:** <https://community.cloudquery.io/t/issue-with-aws-ecr-repository-images-not-syncing-imagescanfindings-correctly/214>\
**Category:** CloudQuery Plugins\
**Created:** [May 10, 2024, 1:39pm UTC](https://community.cloudquery.io/t/issue-with-aws-ecr-repository-images-not-syncing-imagescanfindings-correctly/214 "2024-05-10T13:39:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![concise-oryx](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@concise-oryx](https://community.cloudquery.io/u/concise-oryx)\
**Post date:** [May 10, 2024, 1:39pm UTC](https://community.cloudquery.io/t/issue-with-aws-ecr-repository-images-not-syncing-imagescanfindings-correctly/214/1 "2024-05-10T13:39:53Z")

</div>

aws\_ecr\_repository\_images is unable to get the ImageScanFindings for an ECR repository.

I am using the AWS plugin version 23.1.0 and trying to get all the ECR ImageScanFindings from ECR Repository Images. However, I can see that my ECR ImageScanFindings are not being synced correctly. Even though I have vulnerabilities, CloudQuery is unable to sync them correctly.

Additionally, I need to know why there are `aws_ecr_repository_image_scan_findings` and `aws_ecr_repository_images` tables for the same purpose.

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/ben/32/88_2.png) [@ben](https://community.cloudquery.io/u/ben)\
**Post date:** [May 10, 2024, 1:44pm UTC](https://community.cloudquery.io/t/issue-with-aws-ecr-repository-images-not-syncing-imagescanfindings-correctly/214/2 "2024-05-10T13:44:23Z")

</div>

What is the error you are getting?  
Can you share the config file you are using to sync the data?

---

<div class="post-metadata">

**Author:** ![concise-oryx](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@concise-oryx](https://community.cloudquery.io/u/concise-oryx)\
**Post date:** [May 14, 2024, 6:34am UTC](https://community.cloudquery.io/t/issue-with-aws-ecr-repository-images-not-syncing-imagescanfindings-correctly/214/3 "2024-05-14T06:34:22Z")

</div>

There is no error pointing; just the data is not getting replicated for that column “ImageScanFindings Summary”.

---

<div class="post-metadata">

**Author:** ![kemal](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/kemal/32/42_2.png) [@kemal](https://community.cloudquery.io/u/kemal)\
**Post date:** [May 14, 2024, 9:55am UTC](https://community.cloudquery.io/t/issue-with-aws-ecr-repository-images-not-syncing-imagescanfindings-correctly/214/4 "2024-05-14T09:55:36Z")

</div>

To answer your second question, `aws_ecr_repository_images` contains the repository images, each row being a separate image. There can be multiple findings and enhanced findings for each image (i.e., for different scan times). The plugin uses the `DescribeImageScanFindings` API call to fetch them.

The data type for the scan\_findings table is [AWS Documentation](https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_ImageScanFindings.html).

Are you sure you’ve looked in both `findings` and `enhancedFindings` keys inside the `image_scan_findings` column?
