Open
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
- Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
- If an issue is assigned to a user, that user is claiming responsibility for the issue.
- Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Description
Summary:
AlloyDB APIs recently introduced a MachineType
field within the MachineConfig
nested object.
Issue:
An error occurs during the creation of an instance in a replica cluster. The replica instance's MachineConfig
must match the primary cluster's configuration. The API request fails due to a mismatch: the replica lacks the MachineType
field, which is now required. The primary instance was created without specifying MachineType
using the same Terraform provider.
New or Affected Resource(s)
- google_alloydb_instance
Potential Terraform Configuration
resource "google_alloydb_instance" "default" {
cluster = google_alloydb_cluster.default.name
instance_id = "alloydb-instance"
instance_type = "PRIMARY"
machine_config {
cpu_count = 2
machine_type = "n2-highmem-2"
}
}
References
No response