-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvariables.tf
129 lines (108 loc) · 4.47 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# You must provide a value for each of these parameters.
# ---------------------------------------------------------------------------------------------------------------------
variable "cluster_name" {
type = string
description = "Target ECS cluster used for deployments."
}
variable "ecr_repository_name" {
type = string
description = "Name of the ECR repository for which a trigger will be created to start the deployment pipeline."
}
variable "service_name" {
type = string
description = "The service's name to create the pipeline resources."
}
variable "container_name" {
type = string
description = "The service's main container to create the pipeline resources."
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "artifact_bucket" {
default = ""
description = "Use an existing bucket for codepipeline artifacts that can be reused for multiple services."
type = string
}
variable "artifact_bucket_server_side_encryption" {
default = {}
description = "AWS KMS master key id for server-side encryption."
type = any
}
variable "code_pipeline_type" {
description = "Type of the CodePipeline. Possible values are: `V1` and `V2`."
default = "V1"
type = string
}
variable "code_pipeline_role" {
default = ""
description = "Use an existing role for codepipeline permissions that can be reused for multiple services."
type = string
}
variable "code_pipeline_variables" {
description = "CodePipeline variables. Valid only when `codepipeline_type` is `V2`."
default = []
type = list(object({
name = string
default_value = optional(string)
description = optional(string)
}))
}
variable "code_build_environment_compute_type" {
description = "Information about the compute resources the CodeBuild stage of the deployment pipeline will use."
default = "BUILD_LAMBDA_1GB"
type = string
}
variable "code_build_environment_image" {
description = "Docker image to use for the CodeBuild stage of the deployment pipeline. The image needs to include python."
default = "aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12"
type = string
}
variable "code_build_environment_type" {
description = "Type of build environment for the CodeBuild stage of the deployment pipeline."
default = "ARM_LAMBDA_CONTAINER"
type = string
}
variable "code_build_role" {
default = ""
description = "Use an existing role for codebuild permissions that can be reused for multiple services."
type = string
}
variable "code_build_log_retention_in_days" {
default = 7
description = "Log retention in days of the CodeBuild CloudWatch log group."
type = number
}
variable "codestar_notifications_detail_type" {
default = "BASIC"
description = "The level of detail to include in the notifications for this resource. Possible values are BASIC and FULL."
type = string
}
variable "codestar_notifications_event_type_ids" {
default = ["codepipeline-pipeline-pipeline-execution-succeeded", "codepipeline-pipeline-pipeline-execution-failed"]
description = "A list of event types associated with this notification rule. For list of allowed events see https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api."
type = list(string)
}
variable "codestar_notifications_target_arn" {
default = ""
description = "Use an existing ARN for a notification rule target (for example, a SNS Topic ARN). Otherwise a separate sns topic for this service will be created."
type = string
}
variable "codestar_notification_kms_master_key_id" {
default = null
description = "AWS KMS master key id for server-side encryption."
type = string
}
variable "tags" {
default = {}
description = "Additional tags (_e.g._ { map-migrated : d-example-443255fsf })"
type = map(string)
}
variable "ecr_image_tag" {
default = "production"
description = "Tag of the new image pushed to the Amazon ECR repository to trigger the deployment pipeline."
type = string
}