-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
85 lines (70 loc) · 3.59 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Variable declarations for environment configuration
################################################################################
# Admin defined variables
################################################################################
variable "project_name" {
type = "string"
description = "The name of the project utilizing this setup (i.e. Kaiser-Flu). Be sure there is no whitespace (replace spaces with hyphens '-', only alphanumeric characters and hyphens are allowed)"
}
variable "organization_name" {
type = "string"
description = "The name of the smallest-scale organization with ownership of this project (i.e. Colford-Lab or UCB). Be sure there is no whitespace (replace spaces with hyphens '-', only alphanumeric characters and hyphens are allowed)"
}
variable "access_key" {
type = "string"
description = "The access key of the Terraform IAM user that was setup with administrator access"
}
variable "secret_key" {
type = "string"
description = "The secret key of the Terraform IAM user that was setup with administrator access"
}
variable "workspaces_public_key_path" {
type = "string"
default = "~/.ssh/id_rsa.pub"
description = "The public key path (relative or absolute) of the AWS Workspace from which this setup is being administered, to be imported as an 'EC2 KeyPair'"
}
variable "workspaces_private_key_path" {
type = "string"
default = "~/.ssh/id_rsa"
description = "The private key path (relative or absolute) of the AWS Workspace from which this setup is being administered, used to connect via SSH to the instance"
}
variable "num_researchers" {
type = "string"
description = "The integer number of researchers who will be participating in this project - creates the given number of Researcher IAM accounts"
}
variable "num_admins" {
type = "string"
description = "The integer number of administrators who will be participating in this project - creates the given number of Administrator IAM accounts"
}
variable "instance_type" {
type = "string"
description = "The type of instance to create - see the EC2 Instance Pricing guide: https://aws.amazon.com/ec2/pricing/on-demand/ and/or consult with BRC to determine the best instance for your use case. Example: 't3.micro'"
}
variable "root_volume_size" {
type = "string"
default = "100"
description = "The integer volume size (in GB) of the root EC2 analysis instance. This volume should not contain sensitive data. Roughly 50 GB will be reserved by the system, so the recommended minimum specified here should be 100GB."
}
variable "EBS_volume_size" {
type = "string"
default = "25"
description = "The volume size (in GB) of the EBS data storage volume attached to the EC2 analysis instance. Should be the only volume containing sensitive data. Recommended minimum of 25GB"
}
variable "data_folder_name" {
type = "string"
default = "sensitive_data"
description = "The name of the folder the data will be stored in (on the EBS volume). Be sure there is no whitespace (replace spaces with underscores '_', only lowercase alphanumeric characters and hyphens are allowed)"
}
################################################################################
# Build-defined variables
# Note: these have already been defined, there is no need to modify them (in
# this file - they are local variables and cannot be modified from a .tfvars
# file) unless you are an advanced user and know what changing these does
################################################################################
locals {
region = "us-west-2"
availability_zone = "a"
stage = "prod"
EBS_device_name = "/dev/sdf"
EBS_attach_volume = "1"
}