Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rds): Handle DBParameterGroupNotFound #4148

Conversation

jfagoagas
Copy link
Member

Description

Handle DBParameterGroupNotFound when calling describe_db_parameters RDS API.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jfagoagas jfagoagas requested review from a team May 31, 2024 10:31
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label May 31, 2024
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 86.60%. Comparing base (7b2a7fa) to head (d700f54).
Report is 3 commits behind head on master.

Files Patch % Lines
prowler/providers/aws/services/rds/rds_service.py 71.42% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4148      +/-   ##
==========================================
- Coverage   86.71%   86.60%   -0.11%     
==========================================
  Files         815      815              
  Lines       25476    25492      +16     
==========================================
- Hits        22091    22077      -14     
- Misses       3385     3415      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

regional_client.get_paginator(
"describe_db_parameters"
)
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put another try before this for loop (which is the one that is failing), so even if the cluster does not have parameter group name, its class can be created.

@sergargar sergargar self-requested a review May 31, 2024 13:12
Copy link
Member

@sergargar sergargar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sergargar sergargar merged commit b905d73 into master May 31, 2024
9 of 11 checks passed
@sergargar sergargar deleted the PRWLR-3841-fix-an-error-occurred-db-parameter-group-not-found-when-calling-the-describe-db-parameters-operation-db-parameter-group-not-found branch May 31, 2024 14:01
@sergargar
Copy link
Member

sergargar commented May 31, 2024

Removing backport-v3 tag in favor of the new PR of this issue #4150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants