-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathvars.tf
52 lines (42 loc) · 2.01 KB
/
vars.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
# ---------------------------------------------------------------------------------------------------------------------
# ENVIRONMENT VARIABLES
# Define these secrets as environment variables
# ---------------------------------------------------------------------------------------------------------------------
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL MODULE PARAMETERS
# These variables have defaults, but may be overridden by the operator.
# ---------------------------------------------------------------------------------------------------------------------
variable "region" {
description = "The region where to deploy this code (e.g. us-east-1)."
default = "us-east-1"
}
variable "key_pair_name" {
description = "The name of the Key Pair that can be used to SSH to each EC2 instance in the ECS cluster. Leave blank to not include a Key Pair."
default = ""
}
variable "rails_frontend_image" {
description = "The name of the Docker image to deploy for the Rails frontend (e.g. gruntwork/rails-frontend)"
default = "gruntwork/rails-frontend"
}
variable "rails_frontend_version" {
description = "The version (i.e. tag) of the Docker container to deploy for the Rails frontend (e.g. latest, 12345)"
default = "v1"
}
variable "sinatra_backend_image" {
description = "The name of the Docker image to deploy for the Sinatra backend (e.g. gruntwork/sinatra-backend)"
default = "gruntwork/sinatra-backend"
}
variable "sinatra_backend_version" {
description = "The version (i.e. tag) of the Docker container to deploy for the Sinatra backend (e.g. latest, 12345)"
default = "v1"
}
variable "rails_frontend_port" {
description = "The port the Rails frontend Docker container listens on for HTTP requests (e.g. 3000)"
default = 3000
}
variable "sinatra_backend_port" {
description = "The port the Sinatra backend Docker container listens on for HTTP requests (e.g. 4567)"
default = 4567
}