You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When renaming the spaces bucket name for an CDN origin, terraform fails with "Error: Provider produced inconsistent final plan".
You can retry the apply and it will succeed once the bucket is renamed.
Affected Resource(s)
digitalocean_cdn
digitalocean_spaces_bucket
Expected Behavior
Rename is applied, and terraform succeeds, configuring the CDN with the new bucket name.
Actual Behavior
Terraform fails with:
╷
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for digitalocean_cdn.test to include new values learned so far during apply, provider "registry.terraform.io/digitalocean/digitalocean" produced an invalid new
│ value for .origin: was cty.StringVal("test.example.com.sfo3.digitaloceanspaces.com"), but now cty.StringVal("test-example-com.sfo3.digitaloceanspaces.com").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Steps to Reproduce
Configure spaces bucket with initial name
terraform apply
Edit the bucket name, e.g append the bucket name with -2
I've been able to replicate, but with digitalocean_project_resources as the downstream dependent resource instead of digitalocean_cdn.
The issue seems to be that the name of the Spaces bucket is allowed to be changed by the digitalocean_spaces_bucket resource. It is my understanding from the DigitalOcean documentation that a Spaces name cannot be changed after being created, so this presumably should result in an error?
Bug Report
Describe the bug
When renaming the spaces bucket name for an CDN origin, terraform fails with "Error: Provider produced inconsistent final plan".
You can retry the apply and it will succeed once the bucket is renamed.
Affected Resource(s)
Expected Behavior
Rename is applied, and terraform succeeds, configuring the CDN with the new bucket name.
Actual Behavior
Terraform fails with:
Steps to Reproduce
terraform apply
-2
terraform apply
Terraform Configuration Files
Initial configuration:
Terraform version
Debug Output
https://gist.github.com/adborden/36a0871651438ad76f3aba8b3ca91d25
Panic Output
Additional context
Important Factoids
References
The text was updated successfully, but these errors were encountered: