-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
88 lines (73 loc) · 2.7 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
#This solution, non-production-ready template describes AWS Codepipeline based CICD Pipeline for terraform code deployment.
#© 2023 Amazon Web Services, Inc. or its affiliates. All Rights Reserved.
#This AWS Content is provided subject to the terms of the AWS Customer Agreement available at
#http://aws.amazon.com/agreement or other written agreement between Customer and either
#Amazon Web Services, Inc. or Amazon Web Services EMEA SARL or both.
variable "project_name" {
description = "Unique name for this project"
type = string
}
variable "create_new_repo" {
description = "Whether to create a new repository. Values are true or false. Defaulted to true always."
type = bool
default = true
}
variable "create_new_role" {
description = "Whether to create a new IAM Role. Values are true or false. Defaulted to true always."
type = bool
default = true
}
variable "codepipeline_iam_role_name" {
description = "Name of the IAM role to be used by the Codepipeline"
type = string
default = "codepipeline-role"
}
variable "source_repo_name" {
description = "Source repo name of the CodeCommit repository"
type = string
}
variable "source_repo_branch" {
description = "Default branch in the Source repo for which CodePipeline needs to be configured"
type = string
}
variable "repo_approvers_arn" {
description = "ARN or ARN pattern for the IAM User/Role/Group that can be used for approving Pull Requests"
type = string
}
variable "environment" {
description = "Environment in which the script is run. Eg: dev, prod, etc"
type = string
}
variable "stage_input" {
description = "Tags to be attached to the CodePipeline"
type = list(map(any))
}
variable "build_projects" {
description = "Tags to be attached to the CodePipeline"
type = list(string)
}
variable "builder_compute_type" {
description = "Relative path to the Apply and Destroy build spec file"
type = string
default = "BUILD_GENERAL1_SMALL"
}
variable "builder_image" {
description = "Docker Image to be used by codebuild"
type = string
default = "aws/codebuild/amazonlinux2-x86_64-standard:3.0"
}
variable "builder_type" {
description = "Type of codebuild run environment"
type = string
default = "LINUX_CONTAINER"
}
variable "builder_image_pull_credentials_type" {
description = "Image pull credentials type used by codebuild project"
type = string
default = "CODEBUILD"
}
variable "build_project_source" {
description = "aws/codebuild/standard:4.0"
type = string
default = "CODEPIPELINE"
}