Skip to content

Commit

Permalink
Merge pull request #24363 from njoerd114/f-aws_rds_cluster-aws_rds_cl…
Browse files Browse the repository at this point in the history
…uster_instance-aurora_serverlessv2_support

Add support for Aurora Serverless v2
  • Loading branch information
ewbankkit committed Apr 26, 2022
2 parents d22470a + dcda4bb commit 07b55c2
Show file tree
Hide file tree
Showing 9 changed files with 440 additions and 303 deletions.
3 changes: 3 additions & 0 deletions .changelog/24363.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_rds_cluster: Add `serverlessv2_scaling_configuration` argument to support [Aurora Serverless v2](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html)
```
4 changes: 2 additions & 2 deletions docs/contributing/data-handling-and-conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ To read:
func expandStructure(tfMap map[string]interface{}) *service.Structure {
// ...

if v, ok := tfMap["nested_attribute_name"].(int); ok && v != 0.0 {
apiObject.NestedAttributeName = aws.Float64(float64(v))
if v, ok := tfMap["nested_attribute_name"].(float64); ok && v != 0.0 {
apiObject.NestedAttributeName = aws.Float64(v)
}

// ...
Expand Down

0 comments on commit 07b55c2

Please sign in to comment.