Skip to content

Commit

Permalink
feat: forest-droplet::service_name
Browse files Browse the repository at this point in the history
  • Loading branch information
aatifsyed committed Feb 19, 2024
1 parent 890b77a commit 3b37de6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ terraform {
inputs = {
chain = "calibnet"
droplet_size = "s-4vcpu-16gb-amd"
service_name = "forest-calibnet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ terraform {
inputs = {
chain = "mainnet"
droplet_size = "s-4vcpu-16gb-amd"
service_name = "forest-mainnet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ terraform {
inputs = {
chain = "calibnet"
droplet_size = "s-4vcpu-16gb-amd"
service_name = "forest-calibnet"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ terraform {
inputs = {
chain = "mainnet"
droplet_size = "s-4vcpu-16gb-amd"
service_name = "forest-mainnet"
}
2 changes: 1 addition & 1 deletion tf-managed/modules/forest-droplet/main.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
5 changes: 5 additions & 0 deletions tf-managed/modules/forest-droplet/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b37de6

Please sign in to comment.