diff --git a/tf-managed/live/environments/dev/applications/forest-calibnet/terragrunt.hcl b/tf-managed/live/environments/dev/applications/forest-calibnet/terragrunt.hcl index 69132d3ba..1a8d56fc7 100644 --- a/tf-managed/live/environments/dev/applications/forest-calibnet/terragrunt.hcl +++ b/tf-managed/live/environments/dev/applications/forest-calibnet/terragrunt.hcl @@ -12,4 +12,5 @@ terraform { inputs = { chain = "calibnet" droplet_size = "s-4vcpu-16gb-amd" + service_name = "forest-calibnet" } diff --git a/tf-managed/live/environments/dev/applications/forest-mainnet/terragrunt.hcl b/tf-managed/live/environments/dev/applications/forest-mainnet/terragrunt.hcl index deb279efc..da84a5522 100644 --- a/tf-managed/live/environments/dev/applications/forest-mainnet/terragrunt.hcl +++ b/tf-managed/live/environments/dev/applications/forest-mainnet/terragrunt.hcl @@ -12,4 +12,5 @@ terraform { inputs = { chain = "mainnet" droplet_size = "s-4vcpu-16gb-amd" + service_name = "forest-mainnet" } diff --git a/tf-managed/live/environments/prod/applications/forest-calibnet/terragrunt.hcl b/tf-managed/live/environments/prod/applications/forest-calibnet/terragrunt.hcl index 69132d3ba..1a8d56fc7 100644 --- a/tf-managed/live/environments/prod/applications/forest-calibnet/terragrunt.hcl +++ b/tf-managed/live/environments/prod/applications/forest-calibnet/terragrunt.hcl @@ -12,4 +12,5 @@ terraform { inputs = { chain = "calibnet" droplet_size = "s-4vcpu-16gb-amd" + service_name = "forest-calibnet" } diff --git a/tf-managed/live/environments/prod/applications/forest-mainnet/terragrunt.hcl b/tf-managed/live/environments/prod/applications/forest-mainnet/terragrunt.hcl index deb279efc..da84a5522 100644 --- a/tf-managed/live/environments/prod/applications/forest-mainnet/terragrunt.hcl +++ b/tf-managed/live/environments/prod/applications/forest-mainnet/terragrunt.hcl @@ -12,4 +12,5 @@ terraform { inputs = { chain = "mainnet" droplet_size = "s-4vcpu-16gb-amd" + service_name = "forest-mainnet" } diff --git a/tf-managed/modules/forest-droplet/main.tf b/tf-managed/modules/forest-droplet/main.tf index 1d26bddc3..de1098b86 100644 --- a/tf-managed/modules/forest-droplet/main.tf +++ b/tf-managed/modules/forest-droplet/main.tf @@ -1,5 +1,5 @@ locals { - droplet_name = format("%s-forest-%s", var.environment, var.chain) + droplet_name = format("%s-%s", var.environment, var.service_name) } data "digitalocean_ssh_keys" "keys" { diff --git a/tf-managed/modules/forest-droplet/variable.tf b/tf-managed/modules/forest-droplet/variable.tf index d3b3cc915..d0e759667 100644 --- a/tf-managed/modules/forest-droplet/variable.tf +++ b/tf-managed/modules/forest-droplet/variable.tf @@ -7,6 +7,11 @@ variable "droplet_size" { type = string } +variable "service_name" { + description = "A unique name for the droplet within this environment" + type = string +} + variable "digitalocean_token" { type = string sensitive = true