-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvariables.tf
More file actions
80 lines (70 loc) · 2.06 KB
/
variables.tf
File metadata and controls
80 lines (70 loc) · 2.06 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
variable "enable_codeartifact_domain_kms_key" {
description = "Whether to enable creation of a KMS key for the CodeArtifact domain"
type = bool
default = false
}
variable "codeartifact_domain_kms_key_description" {
description = "Description of KMS key to create if enabled"
type = string
default = ""
}
variable "enable_codeartifact_domain" {
description = "Whether to enable creation of a CodeArtifact domain"
type = bool
default = true
}
variable "codeartifact_domain_name" {
description = "Name of CodeArtifact domain to create or reference based on var.enable_codeartifact_domain"
type = string
}
variable "codeartifact_domain_kms_key_arn" {
description = "CodeArtifact domain KMS key to use if var.enable_codeartifact_domain_kms_key is disabled"
type = string
default = null
}
variable "codeartifact_repositories" {
description = "List of repositories to create. Defaults to NPM with public NPM external connection"
type = list(object({
name = string
description = string
external_connections = list(object({
external_connection_name = string
}))
upstreams = optional(list(object({
upstream_repository_name = string
})))
}))
default = [
{
name = "npm"
description = "NPM repository"
external_connections = [{
external_connection_name = "public:npmjs"
}]
}
]
}
variable "enable_cicd_role" {
description = "Enables creation of a CICD role which grants access to Code Artifact and ECR"
type = bool
default = false
}
variable "cicd_role_trust_arns" {
description = "ARNs to trust for assume role"
type = list(string)
default = []
}
variable "cicd_role_name" {
description = "Name of the CICD role to create"
type = string
default = "cicd"
}
variable "cicd_role_description" {
description = "Description of the CICD role to create"
type = string
default = "Role assumed by CICD pipelines"
}
variable "tags" {
type = map(string)
default = {}
}