Files
nomad/e2e/terraform/variables.tf
Tim Gross fbcdb125da end-to-end testing improvements for CSI (#26834)
While working on #26831 and #26832 I made some minor improvements to our
end-to-end test setup for CSI:

* bump the AWS EBS plugin versions to latest release (1.48.0)
* remove the unnnecessary `datacenters` field from the AWS EBS plugin jobs
* add a name tag to the EBS volumes we create
* add a user-specific name tag to the cluster name when using the makefile to
  deploy a cluster
* add volumes and other missing variables from the `provision-infra` module to
  the main E2E module

Ref: https://github.com/hashicorp/nomad/pull/26832
Ref: https://github.com/hashicorp/nomad/pull/26831
2025-09-25 09:27:15 -04:00

125 lines
3.3 KiB
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
variable "name" {
description = "Used to name various infrastructure components"
default = "nomad-e2e"
}
variable "region" {
description = "The AWS region to deploy to."
default = "us-east-1"
}
variable "availability_zone" {
description = "The AWS availability zone to deploy to."
default = "us-east-1b"
}
variable "instance_type" {
description = "The AWS instance type to use for both clients and servers."
default = "t3a.medium"
}
variable "instance_arch" {
description = "The architecture for the AWS instance type to use for both clients and servers."
default = "amd64"
}
variable "server_count" {
description = "The number of servers to provision."
default = "3"
}
variable "client_count_linux" {
description = "The number of Ubuntu clients to provision."
default = "4"
}
variable "client_count_windows_2022" {
description = "The number of windows 2022 clients to provision."
default = "0"
}
variable "restrict_ingress_cidrblock" {
description = "Restrict ingress traffic to cluster to invoker ip address"
type = bool
default = true
}
# ----------------------------------------
# The specific version of Nomad deployed will default to whichever one of
# nomad_sha, nomad_version, or nomad_local_binary is set
variable "nomad_local_binary" {
description = "The path to a local binary to provision"
}
variable "nomad_license" {
type = string
description = "If nomad_license is set, deploy a license"
}
variable "nomad_region" {
description = "The AWS region to deploy to."
default = "us-east-1"
}
variable "consul_license" {
type = string
description = "If consul_license is set, deploy a license"
}
variable "volumes" {
type = bool
description = "Include external EFS volumes (for CSI)"
default = true
}
variable "hcp_vault_cluster_id" {
description = "The ID of the HCP Vault cluster"
type = string
default = "nomad-e2e-shared-hcp-vault"
}
variable "hcp_vault_namespace" {
description = "The namespace where the HCP Vault cluster policy works"
type = string
default = "admin"
}
variable "hcp_hvn_cidr" {
description = "The CIDR block of the HVN peered into the account."
type = string
default = "172.25.16.0/20"
}
variable "aws_kms_alias" {
description = "The alias for the AWS KMS key ID"
type = string
default = "kms-nomad-keyring"
}
# ----------------------------------------
# If you want to deploy different versions you can use these variables to
# provide a build to override the values of nomad_sha, nomad_version,
# or nomad_local_binary. Most of the time you can ignore these variables!
variable "nomad_local_binary_server" {
description = "A path to an alternative binary to deploy to servers, to override nomad_local_binary"
type = string
default = ""
}
variable "nomad_local_binary_client_ubuntu_jammy" {
description = "A path to an alternative binary to deploy to ubuntu clients, to override nomad_local_binary"
type = string
default = ""
}
variable "nomad_local_binary_client_windows_2022" {
description = "A path to an alternative binary to deploy to windows clients, to override nomad_local_binary"
type = string
default = ""
}