forked from gruntwork-io/terratest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
41 lines (33 loc) · 1.53 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
# ---------------------------------------------------------------------------------------------------------------------
# ENVIRONMENT VARIABLES
# Define these secrets as environment variables
# ---------------------------------------------------------------------------------------------------------------------
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# You must provide a value for each of these parameters.
# ---------------------------------------------------------------------------------------------------------------------
variable "key_pair_name" {
description = "The EC2 Key Pair to associate with the EC2 Instance for SSH access."
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "aws_region" {
description = "The AWS region to deploy into"
default = "us-east-1"
}
variable "instance_name" {
description = "The Name tag to set for the EC2 Instance."
default = "terratest-example"
}
variable "ssh_port" {
description = "The port the EC2 Instance should listen on for SSH requests."
default = 22
}
variable "ssh_user" {
description = "SSH user name to use for remote exec connections,"
default = "ubuntu"
}