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

Modify RDS Cluster after restoring from snapshot, if required #926

Merged
merged 1 commit into from
Jul 6, 2017
Merged

Modify RDS Cluster after restoring from snapshot, if required #926

merged 1 commit into from
Jul 6, 2017

Conversation

luis-silva
Copy link

@luis-silva luis-silva commented Jun 21, 2017

This PR fixes issue 588

That issue is visible when restoring an RDS Cluster from a snapshot. AWS will set the cluster parameter group and backup retention period to the default values and does not allow them to be overridden. This fix ensures that after restoring an RDS Cluster from a snapshot the modifyDbCluster action is executed if any of those parameters has been set to a custom value.

Since it is possible to start a cluster without any instances (omitting the database_name parameter), using 'resourceAwsRDSClusterInstanceUpdate' to update the SG could return an error for not finding any instance to update.

Since 'resourceAwsRDSClusterUpdate' is also able to update the SG across the Cluster and works with zero or more instances in the cluster it makes sense to issue a single call to update all the settings in one go, both solving the error, reducing the number of calls and speeding up the process.

Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants