-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
68 lines (63 loc) · 2.43 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
variable "artifact_bucket_name" {
description = "Name of S3 bucket to create for storing site artifacts. Must be unique in S3"
type = string
}
variable "github_repo" {
description = "GitHub repository for OIDC"
type = string
}
variable "github_org" {
description = "GitHub organization for OIDC"
type = string
}
variable "integration_environment" {
description = <<-EOT
Configuration for Continuous Integration IAM Role. Map containing:
Required Keys:
environment_id = a project unique environment ID
ci_prefix = prefix to restrict S3/Cloudformation IAM policies
Optional Keys:
github_environment_name = if provided, used to restrict role assumption
ssm_read_paths = SSM Parameters paths to grant read access to
ssm_write_paths = SSM Parameters paths to grant write access to
tags = additional tags (merged with var.tags)
EOT
type = object({
environment_id = string
ci_prefix = string
github_environment_name = optional(string)
ssm_read_paths = optional(list(string))
ssm_write_paths = optional(list(string))
tags = optional(map(string))
})
}
variable "deployment_environments" {
description = <<-EOT
Configuration for Continuous Deployment IAM Roles. Map of Maps where
outer key is a project unique environment ID and each internal contains:
Required Keys:
deploy_bucket = name of the S3 bucket where the site will be deployed
Optional Keys:
github_environment_name = if provided, used to restrict role assumption
cloudfront_distribution_id = if provided, used to create cloudfront cache invalidate IAM policy
ssm_read_paths = SSM Parameters paths to grant read access to
ssm_write_paths = SSM Parameters paths to grant write access to
tags = additional tags (merged with var.tags)
EOT
type = map(
object({
deploy_bucket = string
github_environment_name = optional(string)
cloudfront_distribution_id = optional(string)
ssm_read_paths = optional(list(string))
ssm_write_paths = optional(list(string))
tags = optional(map(string))
})
)
default = {}
}
variable "tags" {
description = "Tags to set"
type = map(string)
default = {}
}