Add tagging support
This commit is contained in:
parent
6a025d1a51
commit
bcfb9196a0
@ -8,5 +8,6 @@ resource "digitalocean_droplet" "this" {
|
|||||||
region = var.region
|
region = var.region
|
||||||
ssh_keys = var.ssh_keys
|
ssh_keys = var.ssh_keys
|
||||||
size = var.size
|
size = var.size
|
||||||
|
tags = var.tags
|
||||||
vpc_uuid = data.digitalocean_vpc.this.id
|
vpc_uuid = data.digitalocean_vpc.this.id
|
||||||
}
|
}
|
||||||
|
4
variable.tags.tf
Normal file
4
variable.tags.tf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
variable "tags" {
|
||||||
|
default = []
|
||||||
|
type = list(string)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user