-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
99 lines (84 loc) · 2.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
variable "name" {
type = string
description = "Name used for resource naming"
}
variable "pipelines" {
type = map(object({
name = string
shorter_name = string
buildspec = string
buildspec_test_code = string
environment_variables = list(object({name = string, type = string, value = string}))
secret_arns = list(string)
file_path_pattern_trigger = string
enable_test_stage = bool
}))
}
variable "github_user" {
type = string
}
variable "github_repository_name" {
type = string
description = "Github repository to be tracked"
}
variable "github_access_token_secret_name" {
type = string
description = "Name of the AWS Secrets manager secret that the gitops push job will use to manipulate target gitops repository files. It is mandatory that the secrets_arns also contain this name, otherwise codebuild will not be able to access them"
}
variable "github_access_token" {
type = string
description = "Github access token with admin permissions for target repository (used for downloading source code by codebuild job)"
}
variable "github_repository_organization" {
type = string
description = "Github organization hosting the target repository"
}
variable "github_repository_branch" {
type = string
description = "Git branch for which PUSH_EVENT should be tracked"
}
variable "vpc_id" {
type = string
description = "VPC ID, to be used to attach a network interface for CodePipeline project in order to access private subnets from within the job"
}
variable "vpc_private_subnets" {
type = list(string)
description = "VPC private subnets"
}
variable "default_security_group_id" {
type = string
description = "Default security group id to be used by CodePipeline project"
}
variable "devops_slack_webhook" {
type = string
description = "Slack webhook where pipeline progress statuses are to be reported"
}
variable "devops_slack_channel_name" {
type = string
description = "Slack channel name"
}
variable "devops_slack_webhook_failed" {
type = string
description = "Slack webhook where failed pipelines are to be reported"
}
variable "devops_slack_channel_name_failed" {
type = string
description = "Slack channel name for failed pipelines notifications"
}
variable "env" {
type = string
description = "Environment name used for resource naming"
}
variable "cloudwatch_log_retention_in_days" {
default = 90
description = "CloudWatch log retention for /aws/lambda/* and cosmos-*-webhook-proxy-api-gateway"
}
variable "target_gitops_organization_name" {
type = string
description = "Gitops organization hosting the target gitops repository. If not provided, defaults to github_organization_name"
default = ""
}
variable "target_gitops_repository" {
type = string
description = "Target gitops repository where the image tag update will be pushed (assumes existence of directory kustomization/kustomization.yaml"
}