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

[DBClusterParameterGroup] ReadHandler Includes Parameters #414

Merged
merged 2 commits into from
Mar 8, 2023
Merged

[DBClusterParameterGroup] ReadHandler Includes Parameters #414

merged 2 commits into from
Mar 8, 2023

Conversation

osdrv
Copy link
Contributor

@osdrv osdrv commented Mar 6, 2023

This commit adds parameters attribute to the response of the ReadHandler. The current implementation marks this attribute as write-only, which disqualifies the attribute for a drift detection.

As a side effect, this code change includes a deep refactoring in this handler unit test suite. The refactoring promotes a wide use of the standard testing utility test_handleRequest_base.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Oleg Sidorov added 2 commits March 6, 2023 20:41
This commit adds `parameters` attribute to the response of the
`ReadHandler`. The current implementation marks this attribute as
write-only, which disqualifies the attribute for a drift detection.

As a side effect, this code change includes a deep refactoring in this
handler unit test suite. The refactoring promotes a wide use of the
standard testing utility `test_handleRequest_base`.

Signed-off-by: Oleg Sidorov <[email protected]>
Copy link
Collaborator

@moataz-mhmd moataz-mhmd left a comment

Choose a reason for hiding this comment

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

This resource has memory issue before due to high number of parameters. We used iterable before because we were using SDK paginators. Now, We are not using them anymore. We can avoid building extra iterables(list) and put results directly in accumulators maps. This could be simpler and more memory efficient.

@osdrv osdrv merged commit e7917a1 into aws-cloudformation:master Mar 8, 2023
@osdrv osdrv deleted the osdrv/dbclusterparametergroup-describe-parameters branch March 8, 2023 12:26
angusy29 pushed a commit to angusy29/aws-cloudformation-resource-providers-rds that referenced this pull request Nov 6, 2024
…oudformation-resource-providers-rds into osdrv/merge-github-09-03-2023

# This is a combination of 4 commits.

commit: bbeae619a01ffb32e48e2f3d75401e03a0fdf28c
Author: Oleg Sidorov <[email protected]>
Date: 2023-03-09T08:46:29.000Z

Merge branch 'master' of https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds into osdrv/merge-github-09-03-2023

cr: https://code.amazon.com/reviews/CR-86955765

commit: 5584517
Author: Oleg Sidorov <[email protected]>
Date: 2023-03-08T12:36:31.000Z

[DBInstance] Set AllocatedStorage and Iops on rollback (aws-cloudformation#415)

This commit instructs Translator to set `AllocatedStorage` and `Iops`
unconditionally upon a rollback for instances with provisioned storage
types. RDS API would reject a ModifyDBInstance request for provisioned
storages if these attributes are missing.

Signed-off-by: Oleg Sidorov <[email protected]>
commit: e7917a1
Author: Oleg Sidorov <[email protected]>
Date: 2023-03-08T12:26:44.000Z

[DBClusterParameterGroup] ReadHandler Includes Parameters (aws-cloudformation#414)

This commit adds `parameters` attribute to the response of the
`ReadHandler`. The current implementation marks this attribute as
write-only, which disqualifies the attribute for a drift detection.

As a side effect, this code change includes a deep refactoring in this
handler unit test suite. The refactoring promotes a wide use of the
standard testing utility `test_handleRequest_base`.

Signed-off-by: Oleg Sidorov <[email protected]>
commit: 8ffcafe
Author: moataz-mhmd <[email protected]>
Date: 2023-03-03T14:44:49.000Z

[DBCluster] Checking Failure Events After Mutating As Stabilization Step (aws-cloudformation#412)

* [DBCluster] Checking Failure Events After Mutating As Stabilization Step

* [DBCluster] Move checkFailedEvents and Timestamp to commons.

* [DBCluster] Add NonNull to eventCategories.

* [DBCluster] Update Method Signatures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants