-
Notifications
You must be signed in to change notification settings - Fork 11
/
variables.tf
104 lines (86 loc) · 3.09 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
# -----------------------------------------------------------------------------
# Variables: General
# -----------------------------------------------------------------------------
variable "environment" {
description = "AWS resource environment/prefix"
}
variable "region" {
description = "AWS region"
}
variable "resource_tag_name" {
description = "Resource tag name for cost tracking"
}
variable "codepipeline_sam_module_enabled" {
type = bool
description = "(Optional) Whether to create resources within the module or not. Default is true."
default = true
}
# -----------------------------------------------------------------------------
# Variables: CodeBuild
# -----------------------------------------------------------------------------
variable "build_image" {
type = string
default = "aws/codebuild/standard:4.0"
description = "Docker image for build environment, e.g. 'aws/codebuild/standard:2.0' or 'aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0'. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html"
}
variable "build_compute_type" {
type = string
default = "BUILD_GENERAL1_SMALL"
description = "Instance type of the build instance"
}
variable "build_timeout" {
default = 5
description = "How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed"
}
variable "buildspec" {
type = string
default = "Build YML specification file"
}
variable "badge_enabled" {
type = bool
default = false
description = "Generates a publicly-accessible URL for the projects build badge. Available as badge_url attribute when enabled"
}
variable "privileged_mode" {
type = bool
default = false
description = "(Optional) If set to true, enables running the Docker daemon inside a Docker container on the CodeBuild instance. Used when building Docker images"
}
variable "environment_variable_map" {
type = list(object({
name = string
value = string
type = string
}))
default = []
description = "Additional environment variables for the build process. The type of environment variable. Valid values: PARAMETER_STORE, PLAINTEXT, and SECRETS_MANAGER."
}
# -----------------------------------------------------------------------------
# Variables: CodePipeline
# -----------------------------------------------------------------------------
variable "stack_name" {
type = string
description = "AWS SAM stack name"
}
variable "github_token" {
type = string
description = "Github OAuth token"
}
variable "github_owner" {
type = string
description = "Github username"
}
variable "github_repo" {
type = string
description = "Github repository name"
}
variable "github_branch" {
type = string
description = "Github branch name"
default = "master"
}
variable "poll_source_changes" {
type = string
default = "false"
description = "Periodically check the location of your source content and run the pipeline if changes are detected"
}