github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/networks/remote/terraform/main.tf (about)

     1  #Terraform Configuration
     2  
     3  terraform {
     4    required_providers {
     5      digitalocean = {
     6        source = "digitalocean/digitalocean"
     7        version = "~> 2.0"
     8      }
     9    }
    10  }
    11  
    12  variable "DO_API_TOKEN" {
    13    description = "DigitalOcean Access Token"
    14  }
    15  
    16  variable "TESTNET_NAME" {
    17    description = "Name of the testnet"
    18    default = "sentrynet"
    19  }
    20  
    21  variable "SSH_KEY_FILE" {
    22    description = "SSH public key file to be used on the nodes"
    23    type = string
    24  }
    25  
    26  variable "SERVERS" {
    27    description = "Number of nodes in testnet"
    28    default = "4"
    29  }
    30  
    31  provider "digitalocean" {
    32    token = "${var.DO_API_TOKEN}"
    33  }
    34  
    35  module "cluster" {
    36    source           = "./cluster"
    37    name             = "${var.TESTNET_NAME}"
    38    ssh_key          = "${var.SSH_KEY_FILE}"
    39    servers          = "${var.SERVERS}"
    40  }
    41  
    42  
    43  output "public_ips" {
    44    value = "${module.cluster.public_ips}"
    45  }
    46