-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
117 lines (97 loc) · 2.6 KB
/
Copy pathvariables.tf
File metadata and controls
117 lines (97 loc) · 2.6 KB
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
117
variable "aws_account_id" {
description = "AWS Account ID"
type = string
}
variable "aws_access_key_id" {
description = "AWS Access Key ID"
type = string
}
variable "aws_secret_access_key" {
description = "AWS Secret Access Key"
type = string
}
variable "aws_secret_name" {
description = "The path to the AWS Secret Manager resource which contains the Github App .pem file"
type = string
}
variable "aws_bucket_name" {
description = "The name of the S3 bucket which the cloud config is stored in. This should not include the environment name (i.e. sdp-dev) as it will be added automatically."
type = string
default = "github-repository-archive-script"
}
variable "env_name" {
description = "AWS environment"
type = string
default = "sdp-dev"
}
variable "lambda_name" {
description = "AWS Lambda Function Name"
type = string
default = "lambda-function"
}
variable "lambda_arch" {
description = "AWS Lambda Architecture"
type = string
default = "x86_64"
}
variable "ecr_repository" {
description = "Name of the ECR repository containing the Lambda image"
type = string
}
variable "container_ver" {
description = "Container tag"
type = string
default = "v1.0.0"
}
variable "lambda_timeout" {
description = "AWS Lambda Timeout Value in Seconds"
type = number
default = 60
}
variable "schedule" {
description = "The schedule to trigger the lambda, rate(value minutes|hours|days) or cron(minutes hours day-of-month month day-of-week year)"
type = string
default = "cron(0 6 ? * 2 *)" // every Monday at 6am
}
variable "log_retention_days" {
description = "Lambda log retention in days"
type = number
default = 90
}
variable "github_org" {
description = "Github Organisation"
type = string
default = "ONS-Innovation"
}
variable "github_app_client_id" {
description = "Github App Client ID"
type = string
}
variable "lambda_memory" {
description = "AWS Lambda Memory Size in MB"
type = number
default = 128
}
variable "region" {
description = "AWS region"
type = string
default = "eu-west-2"
}
variable "project_tag" {
description = "Project"
type = string
default = "SDP"
}
variable "team_owner_tag" {
description = "Team Owner"
type = string
default = "Knowledge Exchange Hub"
}
variable "business_owner_tag" {
description = "Business Owner"
type = string
default = "DST"
}
locals {
bucket_name = "${var.env_name}-${var.aws_bucket_name}"
}