20482: Extracts the private IP addr map as configurable variables.
[arvados.git] / tools / salt-install / terraform / aws / vpc / variables.tf
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: CC-BY-SA-3.0
4
5 variable "region_name" {
6   description = "Name of the AWS Region where to install Arvados"
7   type = string
8 }
9
10 variable "cluster_name" {
11   description = "A 5-char alphanum identifier for your Arvados cluster"
12   type = string
13   validation {
14     condition = length(var.cluster_name) == 5
15     error_message = "cluster_name should be 5 chars long."
16   }
17 }
18
19 variable "domain_name" {
20   description = "The domain name under which your Arvados cluster will be hosted"
21   type = string
22 }
23
24 variable "private_only" {
25   description = "Don't create infrastructure reachable from the public Internet"
26   type = bool
27   default = false
28 }
29
30 variable "user_facing_hosts" {
31   description = "List of hostnames for nodes that hold user-accesible Arvados services"
32   type = list(string)
33   default = [ "controller", "workbench" ]
34 }
35
36 variable "internal_service_hosts" {
37   description = "List of hostnames for nodes that hold internal Arvados services"
38   type = list(string)
39   default = [ "keep0", "shell" ]
40 }
41
42 variable "private_ip" {
43   description = "Map with every node's private IP address"
44   type = map(string)
45   default = {
46     controller: "10.1.1.11",
47     workbench: "10.1.1.15",
48     shell: "10.1.2.17",
49     keep0: "10.1.2.13",
50   }
51 }
52
53 variable "vpc_id" {
54   description = "Use existing VPC instead of creating one for the cluster"
55   type = string
56   default = ""
57 }
58
59 variable "sg_id" {
60   description = "Use existing security group instead of creating one for the cluster"
61   type = string
62   default = ""
63 }
64
65 variable "private_subnet_id" {
66   description = "Use existing private subnet instead of creating one for the cluster"
67   type = string
68   default = ""
69 }
70
71 variable "public_subnet_id" {
72   description = "Use existing public subnet instead of creating one for the cluster"
73   type = string
74   default = ""
75 }
76
77 variable "custom_tags" {
78   description = "Apply customized tags to every resource on the cluster"
79   type = map(string)
80   default = {}
81 }