-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
resource/aws_rds_cluster: Add scaling_configuration argument #5531
Conversation
Any idea when will be this released? |
We don't generally slot issues/pull requests for specific releases unless its an important crash/bug fix, but this one is just awaiting review from another maintainer. Hopefully in the next release since its pretty straightforward. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM minus the minor comments
DBClusterIdentifier: aws.String(d.Get("cluster_identifier").(string)), | ||
Engine: aws.String(d.Get("engine").(string)), | ||
EngineMode: aws.String(d.Get("engine_mode").(string)), | ||
ScalingConfiguration: expandRdsScalingConfiguration(d.Get("scaling_configuration").([]interface{})), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do a d.GetOk since scaling_configuration
is optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In many cases, we allow the expand functions to return nil
when it is not defined in the Terraform configuration -- this saves the extra logic of d.GetOk()
each time we invoke these functions as well as prevents potential panics relating to zero elements or the first element being empty.
@@ -481,7 +519,8 @@ func resourceAwsRDSClusterCreate(d *schema.ResourceData, meta interface{}) error | |||
Engine: aws.String(d.Get("engine").(string)), | |||
EngineMode: aws.String(d.Get("engine_mode").(string)), | |||
ReplicationSourceIdentifier: aws.String(d.Get("replication_source_identifier").(string)), | |||
Tags: tags, | |||
ScalingConfiguration: expandRdsScalingConfiguration(d.Get("scaling_configuration").([]interface{})), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do a d.GetOk since scaling_configuration is optional.
EngineMode: aws.String(d.Get("engine_mode").(string)), | ||
MasterUserPassword: aws.String(d.Get("master_password").(string)), | ||
MasterUsername: aws.String(d.Get("master_username").(string)), | ||
ScalingConfiguration: expandRdsScalingConfiguration(d.Get("scaling_configuration").([]interface{})), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do a d.GetOk since scaling_configuration is optional.
548448e
to
4fa5760
Compare
4fa5760
to
525009c
Compare
Rebased against master for the merge conflict, CI still shows green, merging! |
This has been released in version 1.33.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Closes #5505
Changes proposed in this pull request:
scaling_configuration
argumentOutput from acceptance testing: