Closed cphalpin closed 3 months ago
Hi @cphalpin,
Thank you for raising this issue. We understand the issue and have a fix in flight. It will require a change landing in https://github.com/digitalocean/godo first. While waiting for that, you can temporarily work around the issue by setting a lifecycle
block with:
lifecycle {
ignore_changes = [
size
]
}
Bug Report
Describe the bug
I've imported an existing database replica into Terraform Cloud. New run plans now say they will add a size of "db-s-1vcpu-2gb", which I believe is the current size of the replica, and when I try to apply it I get the error
Affected Resource(s)
digitalocean_database_replica
Expected Behavior
I expect no change to be needed here since the replica should already be the correct size.
Actual Behavior
Terraform is trying to call the resize API to set the replica to its current size.
Steps to Reproduce
terraform import
terraform apply
Terraform Configuration Files
config.tf
databases.tf
Terraform version
1.9.3 in Terraform Cloud
My local install is currently 1.9.2 but that's not what I'm using to plan/apply.