Skip to content

Commit

Permalink
Merge pull request #31112 from hashicorp/t-rds-cluster-engine-default
Browse files Browse the repository at this point in the history
rds/cluster/cluster_instance: engine becomes required
  • Loading branch information
YakDriver authored May 3, 2023
2 parents fc70c7d + 8110085 commit 5c327f7
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 388 deletions.
15 changes: 15 additions & 0 deletions .changelog/31112.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
```release-note:breaking-change
resource/aws_rds_cluster: The `engine` argument is now required and has no default
```

```release-note:note
resource/aws_rds_cluster: Configurations not including the `engine` argument must be updated to include `engine` as it is now required. Previously, not including `engine` was equivalent to `engine = "aurora"` and created a MySQL-5.6-compatible cluster
```

```release-note:breaking-change
resource/aws_rds_cluster_instance: The `engine` argument is now required and has no default
```

```release-note:note
resource/aws_rds_cluster_instance: Configurations not including the `engine` argument must be updated to include `engine` as it is now required. Previously, not including `engine` was equivalent to `engine = "aurora"` and created a MySQL-5.6-compatible cluster instance
```
3 changes: 1 addition & 2 deletions internal/service/rds/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ func ResourceCluster() *schema.Resource {
},
"engine": {
Type: schema.TypeString,
Optional: true,
Required: true,
ForceNew: true,
Default: ClusterEngineAurora,
ValidateFunc: validClusterEngine(),
},
"engine_mode": {
Expand Down
3 changes: 1 addition & 2 deletions internal/service/rds/cluster_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ func ResourceClusterInstance() *schema.Resource {
},
"engine": {
Type: schema.TypeString,
Optional: true,
Required: true,
ForceNew: true,
Default: ClusterEngineAurora,
ValidateFunc: validClusterEngine(),
},
"engine_version": {
Expand Down
Loading

0 comments on commit 5c327f7

Please sign in to comment.