network: update terraform config (#6901)

This commit is contained in:
Peter Lai
2021-09-06 11:53:28 +02:00
committed by GitHub
parent 1f8bb74bba
commit 5ee39f05b9
3 changed files with 21 additions and 3 deletions
@@ -1,3 +1,12 @@
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
resource "digitalocean_tag" "cluster" {
name = "${var.name}"
}
@@ -4,13 +4,13 @@ variable "name" {
variable "regions" {
description = "Regions to launch in"
type = "list"
type = list
default = ["AMS3", "FRA1", "LON1", "NYC3", "SFO2", "SGP1", "TOR1"]
}
variable "ssh_key" {
description = "SSH key filename to copy to the nodes"
type = "string"
type = string
}
variable "instance_size" {
+10 -1
View File
@@ -1,5 +1,14 @@
#Terraform Configuration
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.0"
}
}
}
variable "DO_API_TOKEN" {
description = "DigitalOcean Access Token"
}
@@ -11,7 +20,7 @@ variable "TESTNET_NAME" {
variable "SSH_KEY_FILE" {
description = "SSH public key file to be used on the nodes"
type = "string"
type = string
}
variable "SERVERS" {