You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an AWS Aurora RDS cluster from an existing snapshot, the new cluster parameter group is not applied.
I believe this is caused by the fact that when restoring a cluster from a snapshot AWS API does not allow that parameter to be set, check the API, AWS just assigns the default parameter group. It is then required to issue a new API request to modify the cluster, supplying the new parameter group. I don't believe terraform is executing this second step.
If you check the output logs below you can clearly see that terraform is sending a request for "RestoreDBClusterFromSnapshot" supplying the custom parameter group and then AWS responds with <DBClusterParameterGroup>default.aurora5.6</DBClusterParameterGroup>.
The same happens with the backup retention period (and possibly other parameters that I haven't yet noticed)
The cluster is created from the snapshot and then a modify cluster request is sent to apply the new parameters
Actual Behavior
The cluster is created from the snapshot but parameters like the cluster parameter group are not correctly set (fallbacks to default.aurora5.6), since they can only be applied after the cluster is created by a modify cluster api call, and not during the initial creation from snapshot.
Steps to Reproduce
Create an aurora rds cluster from an existing cluster snapshot and specify a different parameter group. Notice that it doesn't get applied.
The text was updated successfully, but these errors were encountered:
This issue was originally opened by @luis-silva as hashicorp/terraform#12490. It was migrated here as part of the provider split. The original body of the issue is below.
When creating an AWS Aurora RDS cluster from an existing snapshot, the new cluster parameter group is not applied.
I believe this is caused by the fact that when restoring a cluster from a snapshot AWS API does not allow that parameter to be set, check the API, AWS just assigns the default parameter group. It is then required to issue a new API request to modify the cluster, supplying the new parameter group. I don't believe terraform is executing this second step.
If you check the output logs below you can clearly see that terraform is sending a request for "RestoreDBClusterFromSnapshot" supplying the custom parameter group and then AWS responds with
<DBClusterParameterGroup>default.aurora5.6</DBClusterParameterGroup>.
The same happens with the backup retention period (and possibly other parameters that I haven't yet noticed)
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
The cluster is created from the snapshot and then a modify cluster request is sent to apply the new parameters
Actual Behavior
The cluster is created from the snapshot but parameters like the cluster parameter group are not correctly set (fallbacks to default.aurora5.6), since they can only be applied after the cluster is created by a modify cluster api call, and not during the initial creation from snapshot.
Steps to Reproduce
Create an aurora rds cluster from an existing cluster snapshot and specify a different parameter group. Notice that it doesn't get applied.
The text was updated successfully, but these errors were encountered: