This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
forked from shuaibiyy/terraform-ecs-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
83 lines (69 loc) · 1.86 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
variable "access_key" {
description = "The AWS access key."
}
variable "secret_key" {
description = "The AWS secret key."
}
variable "region" {
description = "The AWS region to create resources in."
default = "eu-west-2"
}
variable "availability_zone" {
description = "The availability zone"
default = "eu-west-2b"
}
variable "ecs_cluster_name" {
description = "The name of the Amazon ECS cluster."
default = "jenkins"
}
variable "amis" {
description = "Which AMI to spawn. Defaults to the AWS ECS optimized images."
default = {
us-east-1 = "ami-275ffe31"
us-east-2 = "ami-62745007"
us-west-1 = "ami-689bc208"
us-west-2 = "ami-62d35c02"
eu-west-1 = "ami-95f8d2f3"
eu-west-2 = "ami-bf9481db"
eu-central-1 = "ami-085e8a67"
ap-northeast-1 = "ami-f63f6f91"
ap-southeast-1 = "ami-b4ae1dd7"
ap-southeast-2 = "ami-fbe9eb98"
ca-central-1 = "ami-ee58e58a"
}
}
variable "instance_type" {
default = "t2.medium"
}
variable "key_name" {
default = "jenkins"
description = "SSH key name in your AWS account for AWS instances."
}
variable "min_instance_size" {
default = 1
description = "Minimum number of EC2 instances."
}
variable "max_instance_size" {
default = 2
description = "Maximum number of EC2 instances."
}
variable "desired_instance_capacity" {
default = 1
description = "Desired number of EC2 instances."
}
variable "desired_service_count" {
default = 1
description = "Desired number of ECS services."
}
variable "s3_bucket" {
default = "cakesolutions-jenkins"
description = "S3 bucket where remote state and Jenkins data will be stored."
}
variable "restore_backup" {
default = false
description = "Whether or not to restore Jenkins backup."
}
variable "jenkins_repository_url" {
default = "jenkins"
description = "ECR Repository for Jenkins."
}