-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
69 lines (64 loc) · 2.42 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
variable "docker_hub_credentials" {
type = string
description = "Dockerhub credentials: {\"username\":\"docker_username\",\"password\":\"docker_password\"}"
sensitive = true
default = null
}
variable "docker_hub_credentials_sm_item_name" {
type = string
description = "AWS Secretsmanager item name for dockerhub credentials"
default = "docker-hub-ecr-image-sync"
}
variable "ecr_repository_prefixes" {
type = list(string)
description = "List of ECR repository prefixes to give the lambda function access for pushing images to"
default = null
}
variable "lambda_function_settings" {
type = object({
name = optional(string, "ecr-image-sync")
container_uri = optional(string, null)
timeout = optional(number, 900)
zip_file_folder = optional(string, "dist")
event_rules = optional(object({
payload_updated = optional(object({
description = optional(string, "Capture all updated input JSON events: ECRImageSyncScheduledEvent")
is_enabled = optional(bool, false)
}), {}),
repository_tags = optional(object({
description = optional(string, "Capture each ECR repository tag changed event")
is_enabled = optional(bool, true)
}), {})
scheduled_event = optional(object({
description = optional(string, "CloudWatch schedule for synchronization of the public Docker images.")
is_enabled = optional(bool, true)
schedule_expression = optional(string, "cron(0 6 * * ? *)")
}), {})
}), {})
sync_settings = optional(object({
check_digest = optional(bool, true)
concurrent = optional(number, 5)
max_results = optional(number, 100)
}), {})
})
description = "Lambda function options"
default = {}
}
variable "s3_workflow" {
type = object({
bucket = optional(string, "ecr-image-sync")
codebuild_project_name = optional(string, "ecr-image-sync")
codepipeline_name = optional(string, "ecr-image-sync")
crane_version = optional(string, "v0.11.0")
create_bucket = optional(bool, false)
debug = optional(bool, false)
enabled = optional(bool, false)
})
description = "S3 bucket workflow options"
default = {}
}
variable "tags" {
type = map(string)
description = "A mapping of tags assigned to the resources"
default = null
}