-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
62 lines (59 loc) · 1.4 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
# Variables file
# Global variables
variable "Environment" {
description = "Name of the working environment"
type = string
default = "dev"
}
variable "Project" {
description = "Project Name"
type = string
default = "project_test"
}
variable "global_tags" {
description = "Global tags for each resources"
type = map(string)
default = {
ManagedBy : "Terraform",
Module_tf : "ec2"
}
}
# Module Variables
variable "ec2_instance_name" {
description = "Name of the instance EC2"
type = string
default = "ec2_test"
}
variable "ec2_iam_instance_profile" {
description = "EC2 IAM Instance Profile"
type = string
default = "ecsInstanceRole"
}
variable "ec2_ami" {
description = "AMI of the instance EC2"
type = string
}
variable "ec2_instance_type" {
description = "EC2 instance type"
type = string
default = "t3.micro"
}
# From Networking
variable "subnet_name" {
description = "Name of the Subnet"
type = string
}
variable "vpc_name" {
description = "Name of VPC associated to the Load Balancer"
type = string
}
# From SecurityGroups
variable "ec2_security_group_name" {
description = "EC2 Security Group Name"
default = "ec2_default_sg"
}
# From ECS Cluster
variable "ecs_cluster_name" {
description = "ECS Cluster Name associated to EC2 instance"
default = "default_ecs_clu"
}