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:
2020-08-09 16:39:27 -05:00
parent 3f903bcb6c
commit 9fb985dae4
7 changed files with 19 additions and 10 deletions

View File

@@ -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
]