Comments (3)
Thanks for the report. I attempted to put together a minimal example showing this issue, but I was unable to reproduce it. Can you share the output of terraform version
? Also, I notice that your example contains do_volume_ids
when volume_ids
is the correct attribute. I assume this was just a typo when sharing it here, correct?
Here's my attempt to reproduce. With this example, I am able to successfully attach and detach the volume by commenting it out from the Droplet config.
$ tree
.
├── main.tf
├── terraform.tfstate
├── terraform.tfstate.backup
└── volume
├── main.tf
├── terraform.tfstate
└── terraform.tfstate.backup
1 directory, 6 files
main.tf
variable "do_token" {}
provider "digitalocean" {
token = "${var.do_token}"
}
data "terraform_remote_state" "persistent" {
backend = "local"
config {
path = "${path.cwd}/volume/terraform.tfstate"
}
}
resource "digitalocean_droplet" "example" {
count = 1
name = "example-droplet"
region = "ams3"
size = "s-1vcpu-1gb"
image = "ubuntu-18-04-x64"
volume_ids = ["${data.terraform_remote_state.persistent.volume-example-id}"]
}
volume/main.tf
variable "do_token" {}
provider "digitalocean" {
token = "${var.do_token}"
}
resource "digitalocean_volume" "example" {
name = "ams3-example"
region = "ams3"
size = 10
}
output "volume-example-id" {
value = "${digitalocean_volume.example.id}"
}
Please let me know if anything looks out of place or if there is any additional steps needed to reproduce this issue.
from terraform-provider-digitalocean.
I can't reproduce it also. I think it was due to the volume resizing from the DO web interface.
p.s. do_volume_ids is a typo, yes
from terraform-provider-digitalocean.
Thanks for the follow up. I'm going to go ahead and close out this issue. Please feel free to re-open if it occurs again.
from terraform-provider-digitalocean.
Related Issues (20)
- Release v2.35.0 HOT 1
- Add droplet monitor alert for cloud-init completion
- digitalocean_spaces_bucket_cors_configuration: Updating allowed origins has no effect HOT 4
- Add optional "signature" field for `digitalocean_custom_image` resources
- Missing registry_credentials in digitalocean_app.service.image for registry_type = "GHCR" HOT 4
- feature: resource for firewall rule
- digitalocean_cdn custom domain certificate fails "invalid certificate issued by Cloudflare origin CA" HOT 1
- Add Postgres database attributes HOT 2
- digitalocean_spaces_bucket_cors_configuration: Does not allow to order CORS rules
- `digitalocean_project` created on failure, absent from TF state HOT 2
- App Platform image credentials set as required HOT 3
- Dedicated egress IP addresses support for App platform
- digitalocean_spaces_bucket NoSuchBucket while creating bucket HOT 3
- digitalocean_kubernetes_cluster. to support database operator HOT 2
- Consider adding GPG key to OpenTofu registry for the digitalocean provider HOT 2
- Support for database fork
- digitalocean_firewall blocks all ports
- digitalocean_ssh_key race condition (roduced an unexpected new value: Root object was present, but now absent) HOT 1
- digitalocean_database_cluster password is always empty HOT 5
- functions: feature: add resource, and data source for functions and namespaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-digitalocean.