Enable project and volume usage to be optional, off by default, unless the use_project and use_volume variables are set to a positive number
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
resource "digitalocean_project_resources" "this" {
|
||||
project = data.digitalocean_project.this.id
|
||||
count = var.use_project > 0 ? 1 : 0
|
||||
project = data.digitalocean_project.this[0].id
|
||||
resources = [
|
||||
digitalocean_droplet.this.urn
|
||||
]
|
||||
|
Reference in New Issue
Block a user