Assign droplet to a project
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
data "digitalocean_project" "this" {
|
||||
name = var.project
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
resource "digitalocean_project_resources" "this" {
|
||||
project = data.digitalocean_project.this.id
|
||||
resources = [
|
||||
digitalocean_droplet.this.urn
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
variable "project" {
|
||||
default = "default"
|
||||
type = string
|
||||
}
|
||||
Reference in New Issue
Block a user