@@ -2,56 +2,45 @@ variable "region" {
22 description = " Codebuild region"
33 default = " us-east-1"
44}
5-
65variable "artifacts_type" {
76 description = " Type of artifacts (supports: NO_ARTIFACTS or CODEPIPELINE)"
87 default = " NO_ARTIFACTS"
98}
10-
119variable "project_name" {
1210 description = " Codebuild Project Name (Leave empty to autogenerate}"
13- default = " example_project "
11+ default = " "
1412}
15-
16- variable "git_repo" {
17- description = " Github repo (FullPath for to pull via git clone) "
13+ variable "http_git_clone_url" {
14+ description = " Enter: Git Clone URL "
15+ type = string
1816 default = " https://github.com/aws-ia/terraform-modules-examples"
1917}
20-
2118variable "git_clone_depth" {
2219 description = " Repo clone depth"
2320 default = " 1"
2421}
25-
2622variable "build_image" {
2723 description = " Build container image"
2824 default = " aws/codebuild/amazonlinux2-x86_64-standard:3.0"
2925}
30-
3126variable "compute_type" {
3227 description = " Compute type"
3328 default = " BUILD_GENERAL1_MEDIUM"
3429}
35-
3630variable "build_spec_file" {
3731 description = " Build spec file name "
3832 default = " buildspecs/terraform_env.yml"
39-
4033}
41-
4234variable "tags" {
4335 description = " Codebuild Tags"
4436 default = { " Name" = " aws-ia-codebuild" }
4537}
46-
4738variable "create_role_and_policy" {
4839 description = " Create a new IAM role and policy if true"
4940 type = bool
5041 default = true
5142}
52-
5343variable "codebuild_role_arn" {
54-
5544 description = " ARN of the existing codebuild role"
5645 type = string
5746 default = " "
@@ -72,8 +61,6 @@ variable "TF_VERSION" {
7261}
7362
7463# ## CODE BUILD ENVIORNMENT VARIABLES
75-
76-
7764variable "codebuild_env_vars" {
7865 description = " Environment var for CodeBuild"
7966 type = object ({
@@ -85,5 +72,3 @@ variable "codebuild_env_vars" {
8572 EXPORT_PROJECT_NAME = " NAME_OF_PROJECT"
8673 }
8774}
88-
89-
0 commit comments