Skip to content

fix: Don't error on ECR repositories when they're missing Lifecycle policies (aws_ecr_repository_lifecycle_policies)#14730

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
AshCorr:ash/EcrLifecyclePolicies
Oct 19, 2023
Merged

fix: Don't error on ECR repositories when they're missing Lifecycle policies (aws_ecr_repository_lifecycle_policies)#14730
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
AshCorr:ash/EcrLifecyclePolicies

Conversation

@AshCorr
Copy link
Copy Markdown
Contributor

@AshCorr AshCorr commented Oct 19, 2023

Summary

Similar to #14726 . We're calling GetLifecyclePolicy for every ECR repository in account and this API will throw an error if a Lifecycle is not configured for said ECR Repository.

3:46PM ERR table resolver finished with error error="operation error ECR: GetLifecyclePolicy, https response error StatusCode: 400, RequestID:(redacted), LifecyclePolicyNotFoundException: Lifecycle policy does not exist for the repository with name '(redacted)' in the registry with id '(redacted)'" client=(redacted) module=aws-src table=aws_ecr_repository_lifecycle_policies

I don't think we should treat this as an error from Cloudquerys perspective.

…olicies (`aws_ecr_repository_lifecycle_policies`)
@AshCorr AshCorr marked this pull request as ready for review October 19, 2023 20:47
@bbernays bbernays added the automerge Automatically merge once required checks pass label Oct 19, 2023
@kodiakhq kodiakhq bot merged commit 352d46d into cloudquery:main Oct 19, 2023
kodiakhq bot pushed a commit that referenced this pull request Oct 20, 2023
🤖 I have created a release *beep* *boop*
---


## [22.15.2](plugins-source-aws-v22.15.1...plugins-source-aws-v22.15.2) (2023-10-20)


### Bug Fixes

* Don't error on ECR repositories when they're missing Lifecycle policies (`aws_ecr_repository_lifecycle_policies`) ([#14730](#14730)) ([352d46d](352d46d))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
…olicies (`aws_ecr_repository_lifecycle_policies`) (cloudquery#14730)



#### Summary

Similar to cloudquery#14726 . We're calling `GetLifecyclePolicy` for every ECR repository in account and this API will throw an error if a Lifecycle is not configured for said ECR Repository.

```
3:46PM ERR table resolver finished with error error="operation error ECR: GetLifecyclePolicy, https response error StatusCode: 400, RequestID:(redacted), LifecyclePolicyNotFoundException: Lifecycle policy does not exist for the repository with name '(redacted)' in the registry with id '(redacted)'" client=(redacted) module=aws-src table=aws_ecr_repository_lifecycle_policies
```

I don't think we should treat this as an error from Cloudquerys perspective.


<!--
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
🤖 I have created a release *beep* *boop*
---


## [22.15.2](cloudquery/cloudquery@plugins-source-aws-v22.15.1...plugins-source-aws-v22.15.2) (2023-10-20)


### Bug Fixes

* Don't error on ECR repositories when they're missing Lifecycle policies (`aws_ecr_repository_lifecycle_policies`) ([cloudquery#14730](cloudquery#14730)) ([352d46d](cloudquery@352d46d))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/source/aws automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants