forked from strvcom/terraform-aws-fargate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
116 lines (87 loc) · 2.83 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Variables file
## Global variables
variable "name" {
description = "Name to be used on all the resources as identifier"
}
variable "region" {
description = "AWS region"
default = ""
}
## VPC variables
variable "vpc_create" {
description = "Whether or not create a vpc using this module. If you have a preexisting VPC, just mark it as false"
default = true
}
variable "vpc_cidr" {
description = "CIDR to be used by the VPC"
default = "10.0.0.0/16"
}
variable "vpc_public_subnets" {
description = "List of public subnets to be used for the vpc"
default = []
}
variable "vpc_private_subnets" {
description = "List of private subnets to be used for the vpc"
default = []
}
variable "vpc_create_nat" {
description = "Whether or not create a NAT gateway in the VPC managed by this module. Note that disabling this, it will forced to put ALL Fargate services inside a PUBLIC subnet with a PUBLIC ip address"
default = true
}
## External VPC variables
variable "vpc_external_id" {
description = "Id of the external VPC to be used. var.vpc_create must be false, otherwise, this variable will be ignored."
default = ""
}
variable "vpc_external_public_subnets_ids" {
description = "Lists of ids of external public subnets. var.vpc_create must be false, otherwise, this variable will be ignored."
default = []
}
variable "vpc_external_private_subnets_ids" {
description = "Lists of ids of external private subnets. var.vpc_create must be false, otherwise, this variable will be ignored."
default = []
}
## LOGS
variable "cloudwatch_logs_default_retention_days" {
default = 30
}
## ECS variables
variable "ecr_default_retention_count" {
default = 20
}
variable "services" {}
variable "ssm_allowed_parameters" {
description = "List of ssm parameters that can be acceesed by the Fargate task during execution. Could be an ARN or just the name of the parameter path prefix"
default = ""
}
## ALB variables
variable "alb_create" {
description = "Whether or not create ALBs using this module. If you have a preexisting ALB, just mark it as false"
default = true
}
variable "alb_listener_create" {
description = "Whether or not create ALB listeners using this module. If you create the listeners from your module, just mark it as false"
default = true
}
variable "alb_arn" {
description = "The arn of the preexisting ALB"
default = ""
}
variable "alb_arn_suffix" {
description = "The arn suffix of the preexisting ALB"
default = ""
}
variable "alb_security_group_id" {
description = "The security group id of the preexisting ALB"
default = ""
}
variable "alb_default_health_check_interval" {
default = 30
}
variable "alb_default_health_check_path" {
default = "/"
}
## CODEPIPELINE SNS EVENTS varialbes
variable "codepipeline_events_enabled" {
default = false
}